                 }
                 if self.isPresenting {
                     self.backdropView.alpha = 1.0
+					self.blurView.alpha = 1.0
                 } else {
                     self.backdropView.alpha = 0.0
+					self.blurView.alpha = 0.0
                 }
             }
             )
         { finished in
+			self.blurView.removeFromSuperview()
             if transitionContext.transitionWasCancelled {
                 toViewController?.view.removeFromSuperview()
             } else {

    /// Fade out/in the first view controller, instead of moving.
    @IBInspectable var fadeFirst: Bool = false
    @IBInspectable var backdropColor: UIColor?
    /// Direction to which it presents. Dismiss direction defaults to reverse.
    var direction: Direction = .left
    let backdropView = UIView()
	var isInteractive = false

    // MARK: - Private functions

                    backdropView.alpha = 0.0
                }
            }
			if blurBackground {
				blurView.frame = containerView.bounds
				containerView.insertSubview(blurView, belowSubview: toViewController.view)
				blurView.pinToSuperviewEdges()
				blurView.setNeedsDisplay()
				blurView.alpha = 0.5
			}
        }
        let fromDirection = animatePresenter && isPresenting ? direction.reverse : direction
        UIView.animate(
