diff --git a/SafariViewManager.m b/SafariViewManager.m index b606e2d..577af99 100644 --- a/SafariViewManager.m +++ b/SafariViewManager.m @@ -70,7 +70,15 @@ - (void)stopObserving // Set modal transition style if (fromBottom) { +#ifdef __IPHONE_13_0 + if (@available(iOS 13.0, *)) { + _safariView.modalPresentationStyle = UIModalPresentationAutomatic; + } else { + _safariView.modalPresentationStyle = UIModalPresentationOverFullScreen; + } +#else _safariView.modalPresentationStyle = UIModalPresentationOverFullScreen; +#endif } // get the view controller closest to the foreground