Description
Here is my code:
MZFormSheetPresentationViewController *formSheetController = [[MZFormSheetPresentationViewController alloc] initWithContentViewController:myVC]; formSheetController.presentationController.contentViewSize = CGSizeMake(300, 180); formSheetController.presentationController.backgroundColor = [UIColor greenColor]; formSheetController.presentationController.backgroundVisibilityPercentage = 0.3; formSheetController.presentationController.shouldApplyBackgroundBlurEffect = NO;
After I set a breakpoint in MZFormSheetPresentationViewController.m,
[self.presentedViewController.transitionCoordinator animateAlongsideTransition:^(id<UIViewControllerTransitionCoordinatorContext> _Nonnull context) { [UIView animateWithDuration:[context transitionDuration] animations:^{ if (shouldTransitionBlur) { self.blurBackgroundView.effect = self.blurEffectAdapter.blurEffect; } else { self.dimmingView.alpha = 1.0; } }]; } completion:nil];
The issue may be due to self.dimmingView.alpha = 1.0;