Explorar o código

1.录音重复区域UI调整

wenweiwei %!s(int64=3) %!d(string=hai) anos
pai
achega
acaa49c832

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

@@ -77,6 +77,12 @@ class BFIndirectionProgressView: UIView {
         detectionAndCreateItem(start: start, progress: progress)
         currentItem?.frame.size.width = progress < 0 ? 0 : progress * percenWidth
         BFLog(message: "当前view:\(String(describing: currentItem))")
+        let vc = subviews.first { [weak self] sub in
+            (self?.currentItem?.frame.minX ?? 0) < sub.frame.minX && sub.frame.minX < (self?.currentItem?.frame.maxX ?? 0)
+        }
+        if vc !== nil {
+            vc?.removeFromSuperview()
+        }
     }
 
     /// 检测并创建item