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
}
}
答案 0 :(得分:0)
没有df <- strsplit(df$chain, ">")
lapply(df, trimws)
。如果使用的是Lottie 3,则每个docs的LOTAnimationView
。AnimationView
存在于版本2中。migration guide解释了重命名的常量。