jsonwang 3 سال پیش
والد
کامیت
176428c658
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      BFRecordScreenKit/Classes/RecordScreen/View/BFVoiceSettingView.swift

+ 4 - 4
BFRecordScreenKit/Classes/RecordScreen/View/BFVoiceSettingView.swift

@@ -109,14 +109,14 @@ class BFVoiceSettingView: UIView {
     lazy var voicesCollectView: UICollectionView = {
         let layout = UICollectionViewFlowLayout()
         layout.scrollDirection = .vertical
-        layout.itemSize = CGSize(width: adapterWidth(width: 60), height: 78)
+//        layout.itemSize = CGSize(width: adapterWidth(width: 60), height: 78)
         // 每行最小边距
-        layout.minimumLineSpacing = 34
+        layout.minimumLineSpacing = 20
         // 每列最小边距
-        layout.minimumInteritemSpacing = 20
+        layout.minimumInteritemSpacing = 24
         layout.sectionInset = UIEdgeInsets.zero
 
-        let collectView = UICollectionView(frame: CGRect(x: 32, y: 100, width: cScreenWidth - 32 * 2, height: 242 - cSafeAreaHeight), collectionViewLayout: layout)
+        let collectView = UICollectionView(frame: CGRect(x: 32, y: 118, width: cScreenWidth - 32 * 2, height: 242), collectionViewLayout: layout)
         collectView.isPagingEnabled = false
         collectView.showsHorizontalScrollIndicator = false
         collectView.showsVerticalScrollIndicator = false