Skip to content

Commit f76b643

Browse files
committed
Disable swipe to dismiss gesture for modal
1 parent ce42ee7 commit f76b643

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ios/RNInAppBrowser.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ + (BOOL)requiresMainQueueSetup
172172
safariVC.preferredControlTintColor = [RCTConvert UIColor:preferredControlTintColor];
173173
}
174174
}
175+
// To disable "Swipe to dismiss" gesture which sometimes causes a bug where `safariViewControllerDidFinish`
176+
// is not called.
177+
safariVC.modalPresentationStyle = UIModalPresentationOverFullScreen;
175178

176179
UIViewController *ctrl = RCTPresentedViewController();
177180
if (modalEnabled) {

0 commit comments

Comments
 (0)