Xcode 洛蒂动画不显示
我尝试使用lottie,这是我的代码,它没有显示任何内容(UIview中的类是'AnimationView'Xcode 洛蒂动画不显示,xcode,lottie,lottie-ios,Xcode,Lottie,Lottie Ios,我尝试使用lottie,这是我的代码,它没有显示任何内容(UIview中的类是'AnimationView' var animationView: AnimationView? ... func startAnimation() { animationView = .init(name: "12546-welcome") animationView?.frame = view.bounds animationView!.c
var animationView: AnimationView?
...
func startAnimation() {
animationView = .init(name: "12546-welcome")
animationView?.frame = view.bounds
animationView!.contentMode = .scaleAspectFit
animationView!.loopMode = .loop
animationView!.animationSpeed = 1.0
view.addSubview(animationView!)
animationView?.play()
}