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