TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Nov 2017 |
SwiftSwift Version | 4.0 |
SPMSupports SPM | ✗ |
Maintained by ro6lyo.
MKStatusHud is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'MKStatusHud'
After adding the framework to your project, you need to import the modules
import MKStatusHud
import Lottie
Now, you can proceed to create an arbitrary HUD with image like this:
let hud = HUD(withImage: "UIImage"), title: "Please wait!", subtitle: "While download proccess completes.")
or you can create HUD with adobe After Efect animation like this:
let hud = HUD(withAnimation: LOTAnimationView(name: "loader-success-failed"), title: "Please wait!", subtitle: "While download proccess completes.")
alternatively you can customize the hud and animaiton behavior with lots of "plumbing" API:
hud.rotation // rotates hud image
hud.presentOnView // if provided will present hud on that view, other ways it will use UIApplication.keywindow
Animation quick settings, you can use those, or you can manipulate animaiton directly:
hud.animateToProgress // plays animation to the given progress
hud.animationLoop // loops the animation
hud.animationScale // scales the animation
To run the example project, clone the repo, and run pod install
from the Example directory first.
ro6lyo, [email protected]
MKStatusHud is available under the MIT license. See the LICENSE file for more info.