Elegant HTTP networking library for Swift, built on URLSession, with chainable requests, encoding, uploads, downloads and response validation.
airbnb/lottie-ios
An iOS library by Airbnb that natively renders After Effects vector animations exported as bodymovin JSON in real time.
- Stars
- 26,905
- Forks
- 3,838
- Open issues
- 45
- Last commit
- 15 days ago
What is it?
Lottie for iOS loads vector animations exported from After Effects in the bodymovin JSON format and renders them natively in real time, without requiring designers to recreate the motion by hand. It supports iOS, macOS, tvOS and visionOS, and sits alongside sibling Lottie projects for Android and Web.
Because animations are stored as JSON, files stay small while still allowing complex motion. Playback can be controlled by resizing, looping, changing speed, reversing, playing a portion of the timeline, or scrubbing interactively. Properties such as color, position and other keyframable values can also be changed at runtime.
The library can be installed with Swift Package Manager, CocoaPods or Carthage. The project includes an example app with over 100 sample animations and a snapshot test suite.
Key features
- 01Renders bodymovin JSON animations exported from After Effects natively on iOS, macOS, tvOS and visionOS.
- 02Supports playback control including looping, speed changes, reversing and playing a portion of the animation.
- 03Allows interactive scrubbing of animation progress.
- 04Lets you change keyframable values such as color and position at runtime.
- 05Installable via Swift Package Manager, CocoaPods or Carthage.
Use cases
- Shipping onboarding, loading or micro-interaction animations designed in After Effects into an iOS app.
- Adding lightweight animated illustrations without bundling large video or GIF assets.
- Building interactive animations whose progress is tied to user gestures.
Quick start
- 1
In Xcode, choose File → Add Packages and enter https://github.com/airbnb/lottie-spm.git
- 2
Or add the Lottie pod to your Podfile
- 3
Install the pod into your project
pod install - 4
Import Lottie in your Swift code
Things to know
- Works only on Apple platforms: iOS, macOS, tvOS and visionOS.
- Only animations exported in the bodymovin JSON format are supported.
Topics
FAQ
- What is lottie-ios?
- An iOS library by Airbnb that natively renders After Effects vector animations exported as bodymovin JSON in real time. Lottie for iOS loads vector animations exported from After Effects in the bodymovin JSON format and renders them natively in real time, without requiring designers to recreate the motion by hand. It supports iOS, macOS, tvOS and visionOS, and sits alongside sibling Lottie projects for Android and Web.
- Is lottie-ios free to use? What license does it have?
- lottie-ios is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
- Is lottie-ios still maintained?
- Actively maintained. The last commit to lottie-ios was on Oct 6, 2026.
- What can I use lottie-ios for?
- Shipping onboarding, loading or micro-interaction animations designed in After Effects into an iOS app. Adding lightweight animated illustrations without bundling large video or GIF assets. Building interactive animations whose progress is tied to user gestures.
- How do I install lottie-ios?
- In Xcode, choose File → Add Packages and enter https://github.com/airbnb/lottie-spm.git Or add the Lottie pod to your Podfile Install the pod into your project: pod install Import Lottie in your Swift code
- Where can I get lottie-ios?
- The source code and installation instructions are on GitHub: https://github.com/airbnb/lottie-ios
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A decentralized chat app that works over Bluetooth mesh offline and over Nostr relays online, with no accounts or phone numbers.
A free, open source vector and raster 2D graphics editor built on a node-based procedural engine, currently in alpha.
A Swift library for building Apple-platform apps with consistent state management, composable features, side-effect control, and strong testing support.
Open source macOS dictation app that turns speech into text with on-device models and optional AI cleanup, a local alternative to Wispr Flow.
An MCP server and CLI that gives AI coding agents tools to build, test and run iOS and macOS Xcode projects.