This repo provides Swift Package Manager support for lottie-ios.
To install Lottie using Swift Package Manager you can follow the tutorial published by Apple using the URL for this repo with the current version:
or you can add the following dependency to your
.package(url: "https://github.com/airbnb/lottie-spm.git", from: "4.2.0")
The main git repository for lottie-ios is somewhat large (300+ MB), and Swift Package Manager always downloads the full repository with all git history. This lottie-spm repo is much smaller (less than 500kb), so can be downloaded much more quickly.
Instead of downloading the full git history of Lottie and building it from source, this repo just contains a pointer to the precompiled XCFramework included in the latest lottie-ios release (typically ~8MB). If you prefer to include Lottie source directly your project, you can directly depend on the
lottie-ios repo instead.
Lottie is also available via Cocoapods, Carthage, and npm. You can also build Lottie directly from source, or manually integrate precompiled XCFrameworks into your project. More information is available in the main lottie-ios repo.
|Last commit: 5 weeks ago|
Note Starting in Lottie 4.0, the Core Animation rendering engine is now enabled by default. Learn more about this change: Announcing Lottie 4.0 for iOS on the Airbnb Tech Blog
**wildcard incorrectly required matching at least one path component (https://github.com/airbnb/lottie-ios/pull/1988)
LottieAnimationView.allHierarchyKeypaths()to get list of animation keypaths at runtime (https://github.com/airbnb/lottie-ios/pull/2004)
LottieAnimationView.maskAnimationToBoundsconfiguration option (https://github.com/airbnb/lottie-ios/pull/2008)
setValueProviderwould reset animation progress (https://github.com/airbnb/lottie-ios/pull/2052)
Full Changelog: https://github.com/airbnb/lottie-ios/compare/4.1.3...4.2.0
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics