     
     func setAutoScroll() {
         deinitTimer()
-//        if  {
+        if isAutoScroll {
             initTimer()
-//        }
-    }
-    
-    override func layoutSubviews() {
+        }
+    }
+    
+    override public func layoutSubviews() {
         super.layoutSubviews()
         layout.itemSize = bounds.size
         collectionView.frame = bounds

    func deinitTimer() {
        timer?.invalidate()
        timer = nil
    }
    
    func automaticScroll() {

        }
    }

    override public init(frame: CGRect) {
        super.init(frame: frame)
        backgroundColor = .lightGray
        setUpCollectinView()
    }
    
    required public init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func setUpCollectinView() {
