Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set backgroundVisibilityPercentage does not reflect to dimmingView #142

Open
sjacs5537 opened this issue Sep 12, 2017 · 0 comments
Open

Comments

@sjacs5537
Copy link

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant