m1entus / MZFormSheetPresentationController

MZFormSheetPresentationController provides an alternative to the native iOS UIModalPresentationFormSheet, adding support for iPhone and additional opportunities to setup UIPresentationController size and feel form sheet.
MIT License
974 stars 145 forks source link

Blurred background doesn't fade out when dismissing #136

Open banaslee opened 7 years ago

banaslee commented 7 years ago

On the current master branch the blurred background doesn't fade out when dismissing.

I found out that by replacing the current animation block on dismissalTransitionWillBegin with the following makes it work. if ([self shouldTransitionBlur]) { self.blurBackgroundView.alpha = 0.0; } else { self.dimmingView.alpha = 0.0; }

What I don't know is if it conflicts with anything since the previous code there seemed to explicitly treat the blurred background case by not doing anything.

Schemetrical commented 6 years ago

Good solution for now :-) @banaslee