{"repo":"LottieFiles/dotlottie-ios","free":true,"listed":false,"github":"https://github.com/LottieFiles/dotlottie-ios","clone":"git clone https://github.com/LottieFiles/dotlottie-ios.git","description":"Official Lottie & dotLottie player for iOS, macOS, tvOS, watchOS & visionOS — SwiftUI & UIKit, Rust-powered core.","language":"C","stars":153,"topics":["animation","animation-library","cocoapods","dotlottie","ios","lottie","lottie-animation","lottie-ios","lottie-player","macos"],"license":"MIT","category":"mobile-apps","readme_excerpt":"dotLottie iOS [!TIP] Looking for animations to use with this player? Browse 100,000+ free Lottie animations and grab any of them as .lottie or .json , or create your own with Lottie Creator. Supported Devices - Currently this package supports a mimimum iOS version of 13.0+ for iPhone and iPad. - macOS is supported for versions 11.0+. - watchOS is supported for v7.0+. - tvOS is supported for v7.0+. - visionOS is supported for v1.0+. Usage Full documentation available on the developer portal. 1. Install the dependancy Via the Swift Package Manager To install via Swift Package Manager, in the package finder in Xcode, search for LottieFiles/dotlottie-ios or use the full Github path: https://github.com/LottieFiles/dotlottie-ios 2. Import DotLottie 3. How to use The class will store the playback settings of your animation. It will also allow you to control playback via the play / pause functions. 3a. SwiftUI Set up DotLottieAnimation inside a View. Optionally pass playback settings. Load from an animation (.lottie / .json) from the main asset bundle. Load an animation (.lottie / .json) from the web. Load directly from a String (.json). 3b. UIKit - Storyboard Coming soon! 3c. UIKit - Programmatic approach Alternative API: DotLottiePlayerUIView and DotLottiePlayerView As an alternative to the DotLottieAnimation API, you can use DotLottiePlayerUIView (UIKit/AppKit) and DotLottiePlayerView (SwiftUI). These provide a familiar API similar to LottieAnimationView and LottieView from lottie","default_branch":null,"files":null,"tree":[],"storefront":"/r/LottieFiles","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/LottieFiles/dotlottie-ios/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}