

Classification: Lottie
Platform: IOS
Language: Swift / Android / React Native
Language: Swift / Android / React Native
Device:
iPhone / iPad / Android
Apache
Licence:
Download
Installation
Github Repo
You can pull the Lottie Github Repo and include the Lottie.xcodeproj to build a dynamic or static library.
CocoaPods
Add the pod to your Podfile:
pod 'lottie-ios'
And then run:
pod install
After installing the cocoapod into your project import Lottie with
import Lottie
pod 'lottie-ios'
pod install
import Lottie
Carthage
Add Lottie to your Cartfile:
github "airbnb/lottie-ios" "master"
And then run:
carthage update
In your application targets “General” tab under the “Linked Frameworks and Libraries” section, drag and drop lottie-ios.framework from the Carthage/Build/iOS directory that carthage update produced.
github "airbnb/lottie-ios" "master"
carthage update
carthage update produced.Swift Package Manager
// swift-tools-version:5.1
import PackageDescription
let package = Package(
name: "YourTestProject",
platforms: [
.iOS(.v12),
],
dependencies: [
.package(url: "https://github.com/airbnb/lottie-ios.git", from: "3.1.2")
],
targets: [
.target(name: "YourTestProject", dependencies: ["Lottie"])
]
)
And then import wherever needed: import Lottie
// swift-tools-version:5.1
import PackageDescription
let package = Package(
name: "YourTestProject",
platforms: [
.iOS(.v12),
],
dependencies: [
.package(url: "https://github.com/airbnb/lottie-ios.git", from: "3.1.2")
],
targets: [
.target(name: "YourTestProject", dependencies: ["Lottie"])
]
)
import LottieAdding it to an existent iOS Project via Swift Package Manager
- Using Xcode 11 go to File > Swift Packages > Add Package Dependency
- Paste the project URL: https://github.com/airbnb/lottie-ios
- Click on next and select the project target **NOTE: For MacOS you must set the
Branch field to lottie/macos-spm
If you have doubts, please, check the following links:
After successfully retrieved the package and added it to your project, just import Lottie and you can get the full benefits of it.
Branch field to lottie/macos-spm 
Lottie and you can get the full benefits of it.

