|
@@ -16,12 +16,13 @@ class PQStuckPointLoadingView: UIView {
|
|
|
lazy var loadingView: UIImageView = {
|
|
|
let loadingView = UIImageView()
|
|
|
loadingView.tintColor = UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)
|
|
|
- let data = try? Data(contentsOf: URL(fileURLWithPath: currentBundlePath()!.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
|
|
|
- loadingView.displayGIF(data: nil, images: images, repeatCount: .max, duration: duration ?? 2)
|
|
|
- }
|
|
|
- }
|
|
|
+ loadingView.kf.setImage(with: URL(fileURLWithPath: Bundle.main.path(forResource: "stuckPoint_edit_loading", ofType: ".gif")!))
|
|
|
+// let data = try? Data(contentsOf: URL(fileURLWithPath: currentBundlePath()!.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
|
|
|
+// loadingView.displayGIF(data: nil, images: images, repeatCount: .max, duration: duration ?? 2)
|
|
|
+// }
|
|
|
+// }
|
|
|
return loadingView
|
|
|
}()
|
|
|
|