Skip to content

just like show a film to display hud, alert, and custom view

License

Notifications You must be signed in to change notification settings

laichunhui/YourFilm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5f2653e · Jan 10, 2024

History

42 Commits
Jan 10, 2024
Mar 14, 2019
Jan 10, 2024
Jun 27, 2023
Jan 3, 2024
Jun 15, 2022
Feb 7, 2018
Feb 5, 2018
Jun 28, 2023
Jun 27, 2023
Mar 23, 2023

Repository files navigation

platform languages cocoapods support

YourFilm 是一个便利的,功能丰富的 iOS 视图窗口工具,她具备了一般 HUD 的展示功能,同时提供了更丰富的配置,不再局限于单调的黑白,还可以自定义出场动画与结束动画。

效果预览

说明 Gif
文本效果
loading效果

要求

  • iOS 9.0+
  • Xcode 10+
  • Swift 4.0+

安装

CocoaPods

dependencies: [
    .package(url: "https://github.com/laichunhui/YourFilm.git", from: "0.5.0")
]
end

CocoaPods

target '<Your Target Name>' do
    pod 'YourFilm'
end

使用

文字提示使用示例代码

  // 定义文本内容
  let character = HUD.init(content: HUDContent.label("为了更美好的明天而战~~~~~~", textColor: .white))
      
  //快捷调用
  YourFilm.show(character)
  
  //添加自定义背景
  var scenery = Scenery()
  scenery.spaceEffect = .color(faceBgColorSelector.color)
  scenery.stageEffect = .color(stageBgColorSelector.color)
  YourFilm.show(character, scenery: scenery)

自定义图片loading

  let image = UIImage(named: "com_loading_red")!
  YourFilm.showLoading(image: image, title: "正在加载", onView: self.tableView)

系统样式loading

  YourFilm.showActivityIndicator(onView: self.tableView)

补充

该仓库保持随时更新,后续还会有更丰富的展示风格。使用过程中,有任何问题或者建议,可以通过以下方式联系我:
邮箱:504739540@qq.com

License

YourFilm is released under the MIT license.

About

just like show a film to display hud, alert, and custom view

Resources

License

Stars

Watchers

Forks

Packages

No packages published