Lottie Animation Guide for iOS

Learn how to integrate Lottie animations into your iOS app effortlessly.

1. Install Lottie for iOS

pod 'lottie-ios', '~> 4.2.0'

2. Import Lottie

import Lottie

3. Add Lottie Animation View

let animationView = LottieAnimationView(name: "animation")
animationView.frame = CGRect(x: 0, y: 0, width: 300, height: 300)
animationView.loopMode = .loop
animationView.play()
view.addSubview(animationView)

4. Control Animation

animationView.pause()
animationView.play()
animationView.stop()

5. Get Lottie Animations

Find free animations at Unicornicons.

We use cookies