在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):airbnb/lottie-ios开源软件地址(OpenSource Url):https://github.com/airbnb/lottie-ios开源编程语言(OpenSource Language):Swift 99.0%开源软件介绍(OpenSource Introduction):Lottie for iOSView documentation, FAQ, help, examples, and more at airbnb.io/lottie Lottie is a cross-platform library for iOS, macOS, tvOS, Android, and 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, Sketch with Lottie Sketch Export, and from Haiku. Designers can create and ship beautiful animations without an engineer painstakingly recreating it by hand. Since the animation is 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 Installing LottieLottie supports Swift Package Manager, CocoaPods, and Carthage (Both dynamic and static). Github RepoYou can pull the Lottie Github Repo and include the Swift Package ManagerTo install Lottie using Swift Package Manager you can follow the tutorial published by Apple using the URL for the Lottie repo with the current version:
CocoaPodsAdd 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 CarthageAdd Lottie to your Cartfile:
And then run:
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 Data collectionThe Lottie SDK does not collect any data. We provide this notice to help you fill out App Privacy Details. ContributingWe always appreciate contributions from the community. To make changes to the project, you can clone the repo and open
All pull requests with new features or bug fixes that affect how animations render should include snapshot test cases that validate the included changes.
The project also includes several helpful commands defined in our Rakefile. To use these, you need to install Bundler: $ sudo gem install bundle
$ bundle install For example, all Swift code should be formatted according to the Airbnb Swift Style Guide. After making changes, you can reformat the code automatically using SwiftFormat and SwiftLint by running $ bundle exec rake build:all # builds all targets for all platforms
$ bundle exec rake build:package:iOS # builds the Lottie package for iOS
$ bundle exec rake test:package # tests the Lottie package
$ bundle exec rake format:swift # reformat Swift code based on the Airbnb Swift Style Guide |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论