     fileprivate var toControllerInteractive: UIViewController?
     fileprivate var fromControllerInteractive: UIViewController?
     fileprivate var animationDirectionInteractive: AnimationDirection!
+    fileprivate var willFinishAnimationTransition = true
+    fileprivate var timerVelocity = 1.0
     
     
     // MARK: - Life Cycle

            toControllerInteractive?.view.layer.timeOffset = CFTimeInterval(timeOffset)
            fromControllerInteractive?.view.layer.timeOffset = CFTimeInterval(timeOffset)
        case .cancelled, .ended:
            interactiveTransitionInProgress = false
            if fromControllerInteractive != nil, toControllerInteractive != nil {
                startTimerForInteractiveTransition()

            break
        }
    }
    
    func swipeAction(direction: AnimationDirection) {
        if direction == .right {
            let index = selectedIndex! - 1
            if index >= 0 {
                selectController(atIndex: index, animated: isEnabledAnimation)
            }
        } else {
            let index = selectedIndex! + 1
            if index <= viewControllers.count - 1 {
                selectController(atIndex: index, animated: isEnabledAnimation)
            }
        }
    }


}
