MKStatusHud 0.6.0

MKStatusHud 0.6.0

测试已测试
Lang语言 SwiftSwift
许可协议 MIT
发布最后发布2017年11月
SwiftSwift 版本4.0
SPM支持 SPM

ro6lyo 维护。



  • ro6lyo

MKStatusHud

Version
License
Platform

演示

Gif
Gif
Gif
Gif

要求

  • iOS 9.+
  • Xcode 9.0+
  • Swift 4.0+

安装

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 文件。