瀏覽代碼

添加启动动画方法

jsonwang 3 年之前
父節點
當前提交
c23f581c24
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      BFRecordScreenKit/Classes/RecordScreen/View/BFLoadingView.swift

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