Prechádzať zdrojové kódy

添加启动动画方法

jsonwang 3 rokov pred
rodič
commit
c23f581c24

+ 6 - 0
BFRecordScreenKit/Classes/RecordScreen/View/BFLoadingView.swift

@@ -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()