             adjustScrollViewContentX(button)
         }
     }
-    
+
+    // MARK: - UI
     ///  创建子视图UI
     func buildUI() {
         let number = delegate?.numberOfTab(self)


//  MARK: -
class RGSwitchView: UIView {
    //  MARK: ＊＊ Properties ＊＊
    @IBOutlet weak var delegate: RGSwitchViewDelegate?
    
    lazy var shadowImageView = UIImageView()

        
        viewArray = [UIViewController]()
    }

    override func layoutSubviews() {
        //  如果有设置右侧视图，缩小顶部滚动视图的宽度以适应按钮
        if isBuildUI {
