         case left, right, stay
     }
 
-    private func behaviorDirection(x:CGFloat) -> Direction {
+    private func behaviorDirection(x: CGFloat) -> Direction {
         
         switch x {
         case let x where x > scrollView.contentOffset.x:


        let currentPage = Int(round(contentOffsetX/pageWidth))
        if currentPage == self.currentPage { return }
        self.currentPage = currentPage
    }

    public func updateViewSize() {


    private func setup() {

        backgroundColor = .clear

        scrollView.backgroundColor = .clear
        scrollView.isUserInteractionEnabled = false
        scrollView.showsHorizontalScrollIndicator = false

