iOS: Refactor platform code

Change project structure to be more like 4.0
Refactor and remove old code as followup after deprecations fix
This commit is contained in:
Sergey Minakov
2020-10-05 22:19:38 +03:00
parent 1678016e28
commit 2bdfec2418
27 changed files with 2160 additions and 1596 deletions

View File

@@ -158,7 +158,14 @@
} else if (dataCbCr == NULL) {
print_line("Couldn't access CbCr pixel buffer data");
} else {
UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
UIInterfaceOrientation orientation = UIInterfaceOrientationUnknown;
if (@available(iOS 13, *)) {
orientation = [UIApplication sharedApplication].delegate.window.windowScene.interfaceOrientation;
} else {
orientation = [[UIApplication sharedApplication] statusBarOrientation];
}
Ref<Image> img[2];
{