Skip to content

Commit 78ab34f

Browse files
committed
Fix validation defining interface for previous iOS versions
1 parent 37c0b9a commit 78ab34f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ios/RNInAppBrowser.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717

1818
#pragma clang diagnostic push
1919
#pragma clang diagnostic ignored "-Wpartial-availability"
20-
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED < __IPHONE_13_0
21-
@interface RNInAppBrowser () <SFSafariViewControllerDelegate, UIAdaptivePresentationControllerDelegate>
22-
#else
20+
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_13_0
2321
@interface RNInAppBrowser () <SFSafariViewControllerDelegate, ASWebAuthenticationPresentationContextProviding, UIAdaptivePresentationControllerDelegate>
22+
#else
23+
@interface RNInAppBrowser () <SFSafariViewControllerDelegate, UIAdaptivePresentationControllerDelegate>
2424
#endif
2525
@end
2626
#pragma clang diagnostic pop

0 commit comments

Comments
 (0)