Quellcode durchsuchen

Fix build on xcode 10.x

yogevbd vor 5 Jahren
Ursprung
Commit
99ddcd8640
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2
    0
      lib/ios/ReactNativeNavigation.m

+ 2
- 0
lib/ios/ReactNativeNavigation.m Datei anzeigen

@@ -68,7 +68,9 @@
68 68
 - (UIWindow *)initializeKeyWindow {
69 69
 	UIWindow* keyWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
70 70
 	if (@available(iOS 13.0, *)) {
71
+#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
71 72
 		keyWindow.backgroundColor = [UIColor systemBackgroundColor];
73
+#endif
72 74
 	} else {
73 75
 		keyWindow.backgroundColor = [UIColor whiteColor];
74 76
 	}