I'm starting with xcode and swift now. I have tu use xcode 12 and I'm trying to add a lottie animation but I always have the same error.
I've create a short function with I call on viewDidLoad
This is my Outet:
@IBOutlet weak var animationView: LottieAnimationView!
And my function
override func viewDidLoad() {
super.viewDidLoad()
comenzarAnimacion()
}
func comenzarAnimacion(){
animationView.animation = LottieAnimation.named("68802-arrow-down-purple")
animationView.contentMode = .scaleToFill
animationView.loopMode = .loop
animationView.play()
}
The console shows the next error:
2022-12-06 04:52:22.824975-0800 eventos[1572:28620] [Storyboard] Unknown class _TtC6Lottie13AnimationView in Interface Builder file.
I've tryed several difrent lottie json but the same error. any advice?