Skip to content

Commit 24483f8

Browse files
committed
Use numeric ios version identifier, as __IPHONE_10_0 is not defined in older SDKs
1 parent e0c438d commit 24483f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ios/SafariViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ - (void) show:(CDVInvokedUrlCommand*)command {
6262
}
6363

6464
if (tintColor != nil) {
65-
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 // iOS 10.0 supported (compile time)
65+
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 100000 // iOS 10.0 supported (compile time)
6666
if (IsAtLeastiOSVersion(@"10")) { // iOS 10.0 supported (runtime)
6767
vc.preferredControlTintColor = [self colorFromHexString:controlTintColor];
6868
} else {
@@ -73,7 +73,7 @@ - (void) show:(CDVInvokedUrlCommand*)command {
7373
#endif
7474
}
7575

76-
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 // iOS 10.0 supported
76+
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 100000 // iOS 10.0 supported
7777
if (IsAtLeastiOSVersion(@"10")) { // iOS 10.0 supported (runtime)
7878
if (barColor != nil) {
7979
vc.preferredBarTintColor = [self colorFromHexString:barColor];

0 commit comments

Comments
 (0)