dotLottie is an open-source file format that aggregates one or more Lottie files and their associated resources into a single file. They are ZIP archives compressed with the Deflate compression method and carry the file extension of ".lottie".
View documentation, FAQ, help, examples, and more at dotlottie.io
To run the example project, clone the repo, and run pod install
from the Example directory first.
- Swift 5.0
- iOS 9
- macOS 10.12
- tvOS 9.0
- watchOS 6.0
dotLottieR-ios is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'dotLottieR', :git => 'https://github.com/dotlottie/dotlottieR-ios.git'
.package(url: "https://github.com/dotlottie/dotlottieR-ios.git", from: "0.1.0")
import dotLottieR
dotLottieR.isLogEnabled = true
let animator = DotLottieRAnimator(url: url, imageView: anyImageView)
animator.loopMode = .loop
animator.play()
let animator = DotLottieRAnimator(url: url, imageView: anyInterfaceImage)
animator.loopMode = .loop
animator.play()
Evandro Harrison Hoffmann | evandro.hoffmann@gmail.com
dotLottieR-ios is available under the MIT license. See the LICENSE file for more info.