Skip to content

Set backgroundVisibilityPercentage does not reflect to dimmingView #142

Open
@sjacs5537

Description

@sjacs5537

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions