Swiftpack.co - kingpowerclick/LottieProgressHUD as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by kingpowerclick.
kingpowerclick/LottieProgressHUD 2.1.0
ProgressHUD using Lottie from Airbnb
⭐️ 7
🕓 4 weeks ago
iOS watchOS tvOS
.package(url: "https://github.com/kingpowerclick/LottieProgressHUD.git", from: "2.1.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: 7
Last commit: 4 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

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