         self.nextView = oldCurrentView
         
         self.bringSubviewToFront(self.currentView!)
-        UIView.animate(withDuration: 0.3, animations: {
+        UIView.animate(withDuration: withDuration, animations: {
             self.currentView.frame = self.bounds
         }) { completed in
             if completed {

        }
    }
    
    func moveCurrentViewToPreviousView() {
        delegate?.didChangeNextViewToCurrentView()
        
        let oldNextView = self.nextView

        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 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
