support building against iOS SDK < 13.0

This commit is contained in:
Andrey Filipenkov
2022-09-24 15:55:25 +03:00
parent d2ded404bb
commit b8eef4ce35
3 changed files with 13 additions and 0 deletions
+2
View File
@@ -21,8 +21,10 @@ void launchGame(int argc, char * argv[]) {
qtNativeWindow.hidden = YES;
[qtNativeWindow.rootViewController.view removeFromSuperview];
qtNativeWindow.rootViewController = nil;
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_13_0
if (@available(iOS 13.0, *))
qtNativeWindow.windowScene = nil;
#endif
}
[NSNotificationCenter.defaultCenter postNotificationName:@"StartGame" object:nil];
}