Latest 0.6.0
Homepage https://github.com/ro6lyo/MKStatusHud
License MIT
Platforms ios 10.0
Dependencies lottie-ios
Authors

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.

Latest podspec

{
    "name": "MKStatusHud",
    "version": "0.6.0",
    "summary": "A Swift based reimplementation of the Apple HUD and added natively rendered After Effects vector animations.",
    "description": "A Swift based reimplementation of the Apple HUD and added natively rendered After Effects vector animations.You Just need to provide a JSON animaiton or images to present.",
    "homepage": "https://github.com/ro6lyo/MKStatusHud",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ro6lyo": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ro6lyo/MKStatusHud.git",
        "tag": "0.6.0"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "MKStatusHud/Classes/**/*",
    "dependencies": {
        "lottie-ios": []
    },
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This