浏览代码

UI 调整

jsonwang 3 年之前
父节点
当前提交
1fd4c1d489
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      BFRecordScreenKit/Classes/RecordScreen/View/BFVoiceSettingView.swift

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

@@ -114,11 +114,11 @@ class BFVoiceSettingView: UIView {
        
         layout.minimumLineSpacing =  adapterWidth(width: 20)
         // 每列最小边距
-        layout.minimumInteritemSpacing =  24
+        layout.minimumInteritemSpacing =  30
 //        layout.minimumInteritemSpacing = (cScreenWidth - 64 - 240) / 3
         layout.sectionInset = UIEdgeInsets.zero
 
-        let collectView = UICollectionView(frame: CGRect(x: 32, y: 118, width: cScreenWidth - 32 * 2, height: 242), collectionViewLayout: layout)
+        let collectView = UICollectionView(frame: CGRect(x: 22, y: 118, width: cScreenWidth - 22 * 2, height: 242), collectionViewLayout: layout)
         collectView.isPagingEnabled = false
         collectView.showsHorizontalScrollIndicator = false
         collectView.showsVerticalScrollIndicator = false
@@ -279,7 +279,7 @@ extension BFVoiceSettingView: UICollectionViewDelegate, UICollectionViewDataSour
         if collectionView == catagaryCollectView {
             return CGSize(width: adapterWidth(width: 52) + 9, height: 40)
         }
-        return CGSize(width:(cScreenWidth - 64 - 3 * 24) / 4, height: 78)
+        return CGSize(width:(cScreenWidth - 44 - 3 * 30) / 4, height: 78)
     }
 
     func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection _: Int) -> Int {