             }
         }
         else {
-            options = .CurveEaseInOut
+            options = UIViewAnimationOptions()
             duration = defaultCancelPopDuration
         }
         

        
        switch (recognizer.state) {
            
        case .Began:
            if (!self.isAnimatingANonInteractiveTransition) {
                if (navigationController.viewControllers.count > 1) {
                    self.isInteractivelyPopping = true
                    self.navigationController?.popViewControllerAnimated(true)
                }
            }
            
        case .Changed:
            if (!self.isAnimatingANonInteractiveTransition
                && self.isInteractivelyPopping) {
                let view = navigationController.view
                let t = recognizer.translationInView(view)
                self.interactivePopAnimator.translation = t
            }
            
        case .Ended, .Cancelled:
            if (!self.isAnimatingANonInteractiveTransition
                && self.isInteractivelyPopping) {
                self.isAnimatingANonInteractiveTransition = true
                let animator = self.interactivePopAnimator
                let view = navigationController.view
                let t = recognizer.translationInView(view)
                let v = recognizer.velocityInView(view)
                if animator.shouldCancelForGestureEndingWithTranslation(t, velocity: v) {
                    animator.cancelWithTranslation(t, velocity: v, completion: { () -> Void in
                        self.isInteractivelyPopping = false

        
        let options: UIViewAnimationOptions
        if abs(comfortVelocity.x) > 0 {
            options = .curveEaseOut
            duration = self.durationForDistance(distance: maxDistance, velocity: abs(comfortVelocity.x))
        }
        else {
            options = UIViewAnimationOptions()
            duration = defaultCancelPopDuration
        }
        
