MKStatusHud 0.6.0

MKStatusHud 0.6.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2017
SwiftSwift Version 4.0
SPMSupports SPM

Maintained by ro6lyo.



  • By
  • ro6lyo

MKStatusHud

Version
License
Platform

Demo

Gif
Gif
Gif
Gif

Requirements

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

Installation

MKStatusHud is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'MKStatusHud'

Usage

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

General initialization

Behavior

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Author

ro6lyo, [email protected]

License

MKStatusHud is available under the MIT license. See the LICENSE file for more info.