登录 注册

lottie-ios

去点 Star
图像、视频与音频 animationbodymovincustom-transitionsiosios-animationios-transition
26,940
Stars
3,838
Forks
452
Watchers
45
Open Issues
Apache-2.0
许可证
Swift
语言
2016-10-06
创建时间
2026-10-06
最近更新

项目能做什么

用于在 iOS 上原生渲染 After Effects 矢量动画的库。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Lottie for iOS
 [![Version](https://img.shields.io/cocoapods/v/lottie-ios.svg?style=flat)](https://cocoapods.org/pods/lottie-ios) [![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![SwiftPM](https://img.shields.io/badge/SPM-supported-DE5C43.svg?style=flat)](https://swift.org/package-manager/) [![License](https://img.shields.io/cocoapods/l/lottie-ios.svg?style=flat)](https://cocoapods.org/pods/lottie-ios) [![Platform](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fairbnb%2Flottie-ios%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/airbnb/lottie-ios) [![Swift Versions](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fairbnb%2Flottie-ios%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/airbnb/lottie-ios)

**View documentation, FAQ, help, examples, and more at [airbnb.io/lottie](https://airbnb.io/lottie/)**

Lottie is a cross-platform library for iOS, macOS, tvOS, visionOS, [Android](https://github.com/airbnb/lottie-android), and [Web](https://github.com/airbnb/lottie-web) that natively renders vector-based animations and art in realtime with minimal code.

Lottie loads and renders animations and vectors exported in the bodymovin JSON format. Bodymovin JSON can be created and exported from After Effects with [bodymovin](https://github.com/bodymovin/bodymovin), Sketch with [Lottie Sketch Export](https://github.com/buba447/Lottie-Sketch-Export), and from [Haiku](https://www.haikuanimator.com).

Designers can create **and ship** beautiful animations without an engineer painstakingly recreating them by hand.
Since the animations are backed by JSON, they are extremely small in size but can be large in complexity!
Animations can be played, resized, looped, sped up, slowed down, reversed, and even interactively scrubbed.
Lottie can play or loop just a portion of the animation as well, the possibilities are endless!
Animations can even be ***changed at runtime*** in various ways! Change the color, position, or any keyframable value!

Here is just a small sampling of the power of Lottie

![Example1](_Gifs/Examples1.gif)
![Example2](_Gifs/Examples2.gif)

<img src="_Gifs/Community 2_3.gif" />

![Example3](_Gifs/Examples3.gif)

![Abcs](_Gifs/Examples4.gif)

## Installing Lottie
Lottie supports [Swift Package Manager](https://www.swift.org/package-manager/), [CocoaPods](https://cocoapods.org/), and [Carthage](https://github.com/Carthage/Carthage) (Both dynamic and static).

### Github Repo

You can pull the [Lottie Github Repo](https://github.com/airbnb/lottie-ios/) and include the `Lottie.xcodeproj` to build a dynamic or static library.

### Swift Package Manager

To install Lottie using [Swift Package Manager](https://github.com/swiftlang/swift-package-manager) you can follow the [tutorial published by Apple](https://developer.apple.com/documentation/xcode/adding_p
阅读完整原文

商业机会分析 AI 生成

Apple 生态微交互 Lottie 资产库与 SwiftUI 代码生成器

产品构想针对 iOS 和 visionOS 应用场景,构建高品质微交互(如加载态、打勾反馈、新手引导)动效素材站,支持在线调色并自动生成适配 lottie-ios 的 SwiftUI 代码片段。
核心功能分类动效预览、运行时参数在线预览与调色、一键生成 Swift Package/SwiftUI 封装代码、商用授权许可。
目标用户独立 iOS 开发者、中小团队前端/移动端工程师、独立设计开发者。
难度/周期中等 · 1 - 2 个月 · 成本:服务器/CDN 成本、动效素材设计或版权采购成本、苹果开发者年费(如需桌面端)。
收费模式素材单套买断、年度订阅会员获取全库商用授权。
竞争风险LottieFiles 官方平台拥有庞大素材生态,垂直细分市场需依靠极致的 iOS/SwiftUI 原生契合度形成壁垒。
依据 已验证事实

macOS 原生 Lottie 性能检测与工程调试器

产品构想利用 lottie-ios 原生渲染内核打造 macOS 调试工具,帮助开发者与设计师在导入 Xcode 前分析 JSON 复杂度、渲染图层深度、内存与 CPU 负载并提示不兼容的 AE 特性。
核心功能本地 JSON/dotLottie 拖拽实时渲染回放、逐帧性能剖析与图层树解构、不支持特性警告、一键优化导出轻量化 JSON。
目标用户iOS 资深开发团队、动效/视觉设计师、移动端性能优化工程师。
难度/周期中等 · 2 - 3 个月 · 成本:开发设备、Apple Developer Program 账号年费 ($99)。
收费模式Mac App Store 付费买断制或提供基础功能免费+专业分析功能内购 (Freemium)。
竞争风险多数开发者习惯直接在模拟器中联调,对独立分析软件的付费转化率可能偏低。
依据 尚需验证的假设

Figma/AE 到 Xcode 资产交付与代码自动化 CLI 工具

产品构想构建面向团队的动效自动化交付流水线工具,打通从动效设计导出到 lottie-ios 工程引入的链路,实现自动化校验、压缩优化并生成 SPM 依赖包。
核心功能动效文件合规性自动化 CI/CD 检查、JSON 尺寸无损压缩、自动打包为 SPM 依赖资源、版本管理与差异对比。
目标用户中大型移动端研发团队、设计工程团队(Design Ops)。
难度/周期较高 · 2 - 4 个月 · 成本:云端运行环境(如需托管服务)、域名与云存储。
收费模式基础 CLI 开源,企业版私有部署授权、高级团队协同控制台 SaaS 订阅。
竞争风险大厂内部通常自研简易脚本,商业闭环更依赖对复杂团队协同痛点的深度覆盖。
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
3b1b/manim 中文介绍暂未生成
Animation engine for explanatory math videos
96,386 Python
animate-css/animate.css 中文介绍暂未生成
🍿 A cross-browser library of CSS animations. As easy to use
82,982 CSS
heygen-com/hyperframes 中文介绍暂未生成
Write HTML. Render video. Built for agents.
82,772 TypeScript
MisterBooo/LeetCodeAnimation 中文介绍暂未生成
Demonstrate all the questions on LeetCode in the form of ani
76,713 Java
hugohe3/ppt-master 中文介绍暂未生成
AI turns documents or topics into real, native PowerPoint de
75,943 Python
juliangarnier/anime 中文介绍暂未生成
JavaScript animation engine
74,521 JavaScript
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2016-10-06,最近推送 2026-10-06,发布过 72 个 Release
社区活跃Star 26,940 / Fork 3,838 / Issue 45(数据支持,可自行核实)
许可证Apache-2.0
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/airbnb/lottie-ios.git
cd lottie-ios
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。