|
@@ -56,8 +56,8 @@ class BFCameraProgressView: BFProgressBaseView {
|
|
|
DispatchQueue.main.async {[weak self] in
|
|
|
guard let wself = self else { return }
|
|
|
//mdf by ak reloadData 这个方法,在录制5S 前进度不会走。
|
|
|
-// wself.collectionV.reloadData()
|
|
|
- wself.collectionV.insertItems(at: [IndexPath(row: count - 1, section: 0)])
|
|
|
+ wself.collectionV.reloadData()
|
|
|
+// wself.collectionV.insertItems(at: [IndexPath(row: count - 1, section: 0)])
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -78,6 +78,7 @@ class BFCameraProgressView: BFProgressBaseView {
|
|
|
|
|
|
extension BFCameraProgressView: UICollectionViewDelegateFlowLayout, UICollectionViewDataSource {
|
|
|
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
|
|
|
+ BFLog(1, message: "numb:\(recordItem?.thumbImgs.count ?? 0)")
|
|
|
return recordItem?.thumbImgs.count ?? 0
|
|
|
}
|
|
|
|
|
@@ -99,7 +100,7 @@ extension BFCameraProgressView: UICollectionViewDelegateFlowLayout, UICollection
|
|
|
if let (ind, _) = sticker.thumImgs?.enumerated().first(where: { ele in
|
|
|
ele.1 == img
|
|
|
}) {
|
|
|
- size = CGSize(width: max(0, min(((sticker.timelineCMOut - sticker.timelineCMIn).seconds / 5.0 - CGFloat(ind))*70.0, 70.0)), height: 50.0)
|
|
|
+ size = CGSize(width: max(1.0 / UIScreen.main.scale, min(((sticker.timelineCMOut - sticker.timelineCMIn).seconds / 5.0 - CGFloat(ind))*70.0, 70.0)), height: 50.0)
|
|
|
}
|
|
|
|
|
|
if size.width < 0 {
|