我将我的xcode9更新为xcode10,然后突然我在应用程序上的gif无法查看我的gif。然后当我去我的资产。出现。
class CustomLoading: UIView {
static let instance = CustomLoading()
var viewColor: UIColor = .brown
var setAlpha: CGFloat = 2.0
var gifName: String = "customloading"
lazy var transparentView: UIView = {
let transparentView = UIView(frame: UIScreen.main.bounds)
transparentView.backgroundColor = UIColor.white.withAlphaComponent(setAlpha)
transparentView.isUserInteractionEnabled = false
return transparentView
}()
答案 0 :(得分:0)
xcode 10不支持资产上的gif,因此我在资产文件夹外部调用了它