         return view
     }()
 
-    private lazy var HUDView: UIView = {
-        let visualEffectView = UIVisualEffectView(effect: self.HUDVisualEffect)
+    private lazy var HUDView: UIVisualEffectView = {
+        let visualEffectView = UIVisualEffectView()
         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
            self.dimmingView.alpha = 0.0
            self.presentingViewController.view.tintAdjustmentMode = .Automatic
        }, completion: nil)

        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)
