Getting Started
Supported Devices
Currently this package supports a mimimum iOS version of 15.4+ for iPhone and iPad. MacOS is supported for versions 12.0 and upwards.
Usage
- Install the dependancy
Via the Swift Package Manager
To install via Swift Package Manager, in the package finder in Xcode, search for LottieFiles/dotlottie-ios or use the full Github path: https://github.com/LottieFiles/dotlottie-ios
- Import DotLottie
- How to use
The DotLottieAnimation
class will store the playback settings of your animation. It will also allow you to control playback via the play / pause functions.
3a. SwiftUI
Set up DotLottieAnimation inside a View. Optionally pass playback settings.
Load from an animation (.lottie / .json) from the main asset bundle
Load an animation (.lottie / .json) from the web
Load directly from a String (.json)
3b. UIKit - Storyboard
Coming soon!
3c. UIKit - Programmatic approach