     
     func finishWithTranslation(_ translation: CGPoint, velocity: CGPoint, completion: @escaping () -> Void) {
         
-        guard let transitionContext = self.activeContext,
+        guard let transitionContext = activeContext,
             let fromView = transitionContext.view(forKey: UITransitionContextViewKey.from),
             let toView = transitionContext.view(forKey: UITransitionContextViewKey.to) else {
                 return

            duration = defaultCancelPopDuration
        }
        
        self.activeDuration = duration
        
        self.activeContext?.cancelInteractiveTransition()
        
        UIView.animate(withDuration: duration,
            delay: 0,
            options: options,
            animations: { () -> Void in
                self.frontContainerView.transform = CGAffineTransform.identity
                toView.transform = CGAffineTransform(translationX: resolvedToViewOffset, y: 0)
                self.backOverlayView.alpha = 1.0
                self.frontContainerView.dropShadowView.alpha = 1.0
            },
            completion: { (completed) -> Void in
                toView.transform = CGAffineTransform.identity
                container.addSubview(fromView)
                self.backOverlayView.removeFromSuperview()
                self.frontContainerView.removeFromSuperview()

    
    var translation: CGPoint = CGPoint.zero {
        didSet {
            updateViewsWithTranslation(translation)
        }
    }
    
