|
@@ -42,7 +42,14 @@ class PQStuckPointLoadingView: UIView {
|
|
|
addLayout()
|
|
|
|
|
|
}
|
|
|
-
|
|
|
+ func show() {
|
|
|
+ let data = try? Data(contentsOf: URL(fileURLWithPath: Bundle().BF_mainbundle().path(forResource: "stuckPoint_edit_loading", ofType: ".gif")!))
|
|
|
+ if data != nil {
|
|
|
+ PQPHAssetVideoParaseUtil.parasGIFImage(data: data!, isRenderingColor: UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)) { _, images, duration in
|
|
|
+ self.loadingView.displayGIF(data: nil, images: images, repeatCount: .max, duration: duration ?? 2)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
required init?(coder _: NSCoder) {
|
|
|
fatalError("init(coder:) has not been implemented")
|
|
|
}
|