import UIKit
import Lottie
class ViewController: UIViewController {
@IBOutlet weak var containerView: UIView!
override func viewDidLoad() {
super.viewDidLoad()
}
override func viewDidAppear(_ animated: Bool) {
let animationView = LOTAnimationView(name: "Like")// Use of unresolved identifier 'LOTAnimationView'; did you mean 'AnimationView'?
animationView.frame = self.containerView.bounds
self.containerView.addSubview(animationView)
animationView.play()
animationView.loopAnimation = true
}
}