瀏覽代碼

设置左右边距

jsonwang 4 年之前
父節點
當前提交
ed866a5f74
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      MusicVideoPlus/MusicVideoPlus/Classes/Modules/Home/Views/Banner/MVBanner.swift

+ 1 - 0
MusicVideoPlus/MusicVideoPlus/Classes/Modules/Home/Views/Banner/MVBanner.swift

@@ -57,6 +57,7 @@ public class MVBanner: UIView {
     public required init(frame: CGRect = .zero, margin: CGFloat = 0, lineSpacing: CGFloat = 0, minScale: Scale = Scale()) {
         super.init(frame: frame)
         self.flowLayout = MVBannerFlowLayout(margin: margin, lineSpacing: lineSpacing, minScale: minScale)
+        self.flowLayout.sectionInset = UIEdgeInsets.init(top: 0, left: 30, bottom: 0, right: 30)
         self.setupSubviews()
     }