Browse Source

添加下载音乐UI 显示

jsonwang 3 years ago
parent
commit
cd46495703
1 changed files with 10 additions and 1 deletions
  1. 10 1
      BFRecordScreenKit/Classes/RecordScreen/View/BFLoadingView.swift

+ 10 - 1
BFRecordScreenKit/Classes/RecordScreen/View/BFLoadingView.swift

@@ -18,6 +18,15 @@ class BFLoadingView: UIView {
         loadingImage.image = imageInRecordScreenKit(by: "stuckPoint_edit_loading")
         return loadingImage
     }()
+    
+    //是否是下载音乐的模式,不发出回调不显示进度
+    public var isDownloadMusic:Bool = false{
+        didSet {
+            if isDownloadMusic {
+                titleL.text = ""
+            }
+        }
+    }
 
     lazy var closedBtn: UIButton = {
         let closedBtn = UIButton(type: .custom)
@@ -90,7 +99,7 @@ class BFLoadingView: UIView {
     // 隐藏动画
     @objc public func loadHidden() {
         removeLoading()
-        if cancelHandle != nil {
+        if cancelHandle != nil,!isDownloadMusic {
             cancelHandle!()
         }