         NSLayoutConstraint.activateConstraints(constraints)
 
         presentingViewController.transitionCoordinator()?.animateAlongsideTransition({ context in
+            self.HUDView.effect = self.HUDVisualEffect
             self.dimmingView.alpha = 1.0
             self.presentingViewController.view.tintAdjustmentMode = .Dimmed
         }, completion: nil)

        return view
    }()

    private lazy var HUDView: UIView = {
        let visualEffectView = UIVisualEffectView(effect: self.HUDVisualEffect)
        visualEffectView.frame = self.frameOfPresentedViewInContainerView()
        visualEffectView.layer.cornerRadius = self.cornerRadius
        visualEffectView.layer.masksToBounds = self.cornerRadius != 0.0


    public override func dismissalTransitionWillBegin() {
        presentingViewController.transitionCoordinator()?.animateAlongsideTransition({ context in
            if #available(iOS 9.0, *) {
                self.HUDView.effect = nil
            } else {
                // UIVisualEffectView.effect animation isn't available in iOS 8
            }
            self.dimmingView.alpha = 0.0
            self.presentingViewController.view.tintAdjustmentMode = .Automatic
        }, completion: nil)
