         self.backgroundColor = .lightGray
         self.clipsToBounds = true
         
-        let swipeLeft = UISwipeGestureRecognizer(target: self, action: #selector(didSwipe(_:)))
-        swipeLeft.direction = .left
-        self.addGestureRecognizer(swipeLeft)
-        
-        let swipeRight = UISwipeGestureRecognizer(target: self, action: #selector(didSwipe(_:)))
-        swipeRight.direction = .right
-        self.addGestureRecognizer(swipeRight)
+//        let swipeLeft = UISwipeGestureRecognizer(target: self, action: #selector(didSwipe(_:)))
+//        swipeLeft.direction = .left
+//        self.addGestureRecognizer(swipeLeft)
+//
+//        let swipeRight = UISwipeGestureRecognizer(target: self, action: #selector(didSwipe(_:)))
+//        swipeRight.direction = .right
+//        self.addGestureRecognizer(swipeRight)
+
+        let panGesture = UIPanGestureRecognizer(target: self, action: #selector(didPan(_:)))
+        self.addGestureRecognizer(panGesture)
         
         let blueView = ItemView.init(frame: self.bounds.offsetBy(dx: -self.bounds.size.width, dy: 0))
         blueView.backgroundColor = .blue

        }
    }
    
    func movePreviousViewToCurrentView() {
        delegate?.didChangePreviousViewToCurrentView()
        
        let oldCurrentView = self.currentView

        }
    }
    
    func moveCurrentViewToPreviousView(withDuration: TimeInterval = 0.3) {
        delegate?.didChangeNextViewToCurrentView()
        
        let oldNextView = self.nextView
