diff --git a/ios/src/ImageCropPicker.m b/ios/src/ImageCropPicker.m index 9f20973f1..68d4766be 100644 --- a/ios/src/ImageCropPicker.m +++ b/ios/src/ImageCropPicker.m @@ -126,7 +126,8 @@ - (void) setConfiguration:(NSDictionary *)options - (UIViewController*) getRootVC { UIViewController *root = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; - while (root.presentedViewController != nil) { + while (root.presentedViewController != nil && + !root.presentedViewController.isBeingDismissed) { root = root.presentedViewController; }