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 3.0.3
ProgressHUD using Lottie from Airbnb
⭐️ 7
🕓 19 weeks ago
iOS watchOS tvOS
.package(url: "https://github.com/kingpowerclick/LottieProgressHUD.git", from: "3.0.3")

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: 19 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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