This is an automated email from the ASF dual-hosted git repository.
GitToTheHub pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/cordova-plugin-inappbrowser.git
The following commit(s) were added to refs/heads/master by this push:
new 8d2845b chore(ios): remove pre ios 11 code in `show:withNoAnimate:`
(#1135)
8d2845b is described below
commit 8d2845bbf7c12db9d944e6db78b4a372b1a4e666
Author: Manuel Beck <[email protected]>
AuthorDate: Sat Apr 25 10:48:33 2026 +0200
chore(ios): remove pre ios 11 code in `show:withNoAnimate:` (#1135)
- The plugin supports minimum iOS 11
---
src/ios/CDVWKInAppBrowser.m | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/ios/CDVWKInAppBrowser.m b/src/ios/CDVWKInAppBrowser.m
index 71c1c9a..cce5502 100644
--- a/src/ios/CDVWKInAppBrowser.m
+++ b/src/ios/CDVWKInAppBrowser.m
@@ -241,7 +241,6 @@
// Run later to avoid the "took a long time" log message.
dispatch_async(dispatch_get_main_queue(), ^{
if (weakSelf.inAppBrowserViewController != nil) {
- float osVersion = [[[UIDevice currentDevice] systemVersion]
floatValue];
__strong __typeof(weakSelf) strongSelf = weakSelf;
if (!strongSelf->tmpWindow) {
if (@available(iOS 13.0, *)) {
@@ -269,9 +268,6 @@
// window would never be displayed, which results in a
white/blank screen.
if (!strongSelf->tmpWindow) {
CGRect frame = [[UIScreen mainScreen] bounds];
- if (initHidden && osVersion < 11) {
- frame.origin.x = -10000;
- }
strongSelf->tmpWindow = [[UIWindow alloc]
initWithFrame:frame];
}
}
@@ -279,7 +275,7 @@
[strongSelf->tmpWindow setRootViewController:tmpController];
[strongSelf->tmpWindow setWindowLevel:UIWindowLevelNormal];
- if (!initHidden || osVersion < 11) {
+ if (!initHidden) {
[self->tmpWindow makeKeyAndVisible];
}
[tmpController presentViewController:nav animated:!noAnimate
completion:nil];
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]