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