         }
     }
 
-    private lazy var rootScrollView     =   UIScrollView()  //  主视图
-    private lazy var topScrollView      =   UIScrollView()  //  顶部页签视图
+    fileprivate lazy var rootScrollView     =   UIScrollView()  //  主视图
+    fileprivate lazy var topScrollView      =   UIScrollView()  //  顶部页签视图
     private lazy var rightSideButton    =   UIButton()      //  右侧按钮
     private lazy var leftSideButton     =   UIButton()      //  左侧按钮
     
-    private lazy var userContentOffsetX: CGFloat = 0.0
-    private lazy var isLeftScroll   =   false               //  是否左滑动
-    private lazy var isRootScroll   =   false               //  主视图是否滑动
+    fileprivate lazy var userContentOffsetX: CGFloat = 0.0
+    fileprivate lazy var isLeftScroll   =   false               //  是否左滑动
+    fileprivate lazy var isRootScroll   =   false               //  主视图是否滑动
     private lazy var isBuildUI      =   false               //  是否建立了UI
     
     private lazy var userSelectedChannelID = 100            //  点击按钮选择名字ID

     - parameter view:         本控件
     - parameter panRightEdge: 手势
     */
    optional func switchView(view: RGSwitchView, panRightEdge: UIPanGestureRecognizer)
    
    /**
     点击Tab

        initValues()
    }

    fileprivate func initValues() {
        //  创建顶部可滑动的Tab
        topScrollView = UIScrollView(frame: CGRect(x: 0, y: 0, width: self.bounds.width, height: kHeightOfTopScrollView))
        topScrollView.delegate = self
        topScrollView.backgroundColor = UIColor.clear
        topScrollView.isPagingEnabled = false
        topScrollView.showsHorizontalScrollIndicator = false
        topScrollView.showsVerticalScrollIndicator = false
        topScrollView.autoresizingMask = UIViewAutoresizing.flexibleWidth
        addSubview(topScrollView)
        
        //  创建主滑动视图
        rootScrollView = UIScrollView(frame: CGRect(x: 0, y: kHeightOfTopScrollView,
            width: self.bounds.width, height: self.bounds.height - kHeightOfTopScrollView))
        rootScrollView.delegate = self
        rootScrollView.isPagingEnabled = true
        rootScrollView.isUserInteractionEnabled = true
        rootScrollView.bounces = false
        rootScrollView.showsHorizontalScrollIndicator = false
        rootScrollView.showsVerticalScrollIndicator = false
        rootScrollView.autoresizingMask = [.flexibleHeight, .flexibleBottomMargin, .flexibleWidth]
        rootScrollView.panGestureRecognizer.addTarget(self, action: #selector(RGSwitchView.scrollHandlePan(_:)))
        addSubview(rootScrollView)
        
