Skip to content

Commit

Permalink
fix view blinks on ios15 if enable cropping flag (#1739)
Browse files Browse the repository at this point in the history
  • Loading branch information
Milker90 committed Feb 18, 2022
1 parent 2b95b88 commit 356985a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ios/src/ImageCropPicker.m
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,9 @@ - (void)cropImage:(UIImage *)image {
cropVC.rotateButtonsHidden = [[self.options objectForKey:@"cropperRotateButtonsHidden"] boolValue];

cropVC.modalPresentationStyle = UIModalPresentationFullScreen;
if (@available(iOS 15.0, *)) {
cropVC.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
}

[[self getRootVC] presentViewController:cropVC animated:FALSE completion:nil];
});
Expand Down

0 comments on commit 356985a

Please sign in to comment.