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