MZFormSheetPresentationController icon indicating copy to clipboard operation
MZFormSheetPresentationController copied to clipboard

Set backgroundVisibilityPercentage does not reflect to dimmingView

Open sjacs5537 opened this issue 8 years ago • 0 comments

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;

sjacs5537 avatar Sep 12 '17 03:09 sjacs5537