|
@@ -79,6 +79,12 @@ class BFLoadingView: UIView {
|
|
|
loadingImage.displayGIF(data: nil, images: gifImages, repeatCount: .max, duration: duration ?? 2)
|
|
|
}
|
|
|
|
|
|
+ //启动动画
|
|
|
+ public func startGIF(){
|
|
|
+ loadingImage.displayGIF(data: nil, images: gifImages, repeatCount: .max, duration: duration ?? 2)
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
public func removeLoading(){
|
|
|
isHidden = true
|
|
|
loadingImage.removePlayGIF()
|