我有动画 Lottie,但无法使用 Assets 运行动画。动画播放但没有 Assets 。
我把我的 Assets 放在这条路上。网络播放器很好玩。但在 iOS 中控制台打印:-[LOTLayerContainer _setImageForAsset:]: Warn: image not found: img_0.png。对于所有图像都是如此。
快速代码:
let animation = LOTAnimationView(name: "data")
animation.frame = self.view.frame
animation.contentMode = .scaleAspectFill
self.view.addSubview(animation)
animation.play()
路径:
最佳答案
关于ios - 无法在 iOS Swift 中使用 Assets 运行动画,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55664657/