The AirBNB's README.md for Lottie IOS updated. setAnimation not in Readme, and not registering in swift dropdown list of selectors for updated version 3.0.0 Has anyone experienced this issue? Lottie cocoapod is successfully installed.
README.md trial and error restart
@IBOutlet private var animationView: AnimationView!
override func viewDidLoad() {
super.viewDidLoad()
startAnimation()
}
func startAnimation() {
animationView.setAnimation(named: "spineffectloader")
animationView.play()
}
In swift, you need to update code as follow to register animation:
animationView.animation = Animation.named("spineffectloader")
To start animation use following code:
animationView.play { (finished) in
/// Animation finished
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With