Progress Time - Describes time in progress from 0 (the beginning of the animation timeline) to 1 (the end of the animation timeline).Īll three can be used to play and set time on an AnimationView Basic Playing.(Seconds * Framerate) eg: 0.5 second is FrameTime 12 when framerate is 24. Frame Time - Describes time in a frames per second format.There are several methods for playing animations, and portions of animations. Read more about AnimationImageProvider here Playing Animations Time To force an AnimationView to reload its images call reloadImages() on the AnimationView. Supplying ImagesĪnimationView uses AnimationImageProvider to retrieve the images for its animation.Īn image provider can be supplied when the Animation View is initialized, or after by setting its imageProvider property. There are a handful of convenience initializers for initializing with animations. Creating Animation ViewsĪnimation views can be allocated with or without animation data. AnimationView offers a number of ways to load, play, and even change animations. sharedCache)ĪnimationView is a UIView (NSView on macOS) subclass that displays animation content. You can pull the Lottie Github Repo and include the Lottie.xcodeproj to build a dynamic or static library. Lottie supports CocoaPods and Carthage (Both dynamic and static). = Announcement=: As of 3.0 Lottie has been completely rewritten in Swift 4.2! For Objective-C support please use Lottie 2.5.3.