测试已测试 | ✗ |
Lang语言 | SwiftSwift |
许可协议 | MIT |
发布最后发布 | 2017年11月 |
SwiftSwift 版本 | 4.0 |
SPM支持 SPM | ✗ |
由 ro6lyo 维护。
MKStatusHud 通过 CocoaPods 提供。要安装它,请简单地将以下行添加到您的 Podfile 中
pod 'MKStatusHud'
将框架添加到您的项目中后,您需要导入模块
import MKStatusHud
import Lottie
现在,您可以继续创建一个带有图像的任意 HUD,如下所示
let hud = HUD(withImage: "UIImage"), title: "Please wait!", subtitle: "While download proccess completes.")
或者,您可以像这样创建带有 Adobe After Effects 动画的 HUD
let hud = HUD(withAnimation: LOTAnimationView(name: "loader-success-failed"), title: "Please wait!", subtitle: "While download proccess completes.")
或者,您可以使用许多“管道”API 自定义 HUD 和动画行为
hud.rotation // rotates hud image
hud.presentOnView // if provided will present hud on that view, other ways it will use UIApplication.keywindow
动画快速设置,您可以使用这些,或者您可以直接操作动画
hud.animateToProgress // plays animation to the given progress
hud.animationLoop // loops the animation
hud.animationScale // scales the animation
要运行示例项目,请克隆仓库,然后首先从 Example 目录中运行 pod install
ro6lyo,[email protected]
MKStatusHud 在 MIT 许可下提供。有关更多信息,请参阅 LICENSE 文件。