Swiftpack.co -  Package - kingpowerclick/LottieProgressHUD
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
kingpowerclick/LottieProgressHUD
ProgressHUD using Lottie from Airbnb
.package(url: "https://github.com/kingpowerclick/LottieProgressHUD.git", from: "1.2.0")

LottieProgressHUD

pod Carthage compatible

ProgressHUD using Lottie from Airbnb

Installation

CocoaPods

pod 'LottieProgressHUD'

Carthage

github "kingpowerclick/LottieProgressHUD"

Usage

Quick Start

import Lottie
import LottieProgressHUD

class AppDelegate: UIResponder, UIApplicationDelegate
{
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool
    {
        if let progressAnimation = Animation.named("progress-animation.json")
        {
            ProgressHUD.register(animation: progressAnimation)
        }
        else
        {
            fatalError("Unable to find the animation file")
        }
 
        return true
    }
}

class ViewController: UIViewController
{
    private func buttonDidTap()
    {
        ProgressHUD.show()

        someAsyncOps(
            completion: {
                ProgressHUD.dismiss() })
    }
}

for more information about Lottie click here

GitHub

link
Stars: 3
Last commit: 2 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco