We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c53a4c commit fb13a38Copy full SHA for fb13a38
status-bar/ios/Sources/StatusBarPlugin/StatusBar.swift
@@ -124,9 +124,17 @@ public class StatusBar {
124
}
125
126
private func resizeWebView() {
127
+ var bounds: CGRect? = nil
128
+
129
+ if #available(iOS 15.0, *) {
130
+ bounds = bridge.viewController?.view.window?.windowScene?.keyWindow?.bounds
131
+ } else {
132
+ bounds = bridge.viewController?.view.window?.windowScene?.screen.bounds
133
+ }
134
135
guard
136
let webView = bridge.webView,
- let bounds = bridge.viewController?.view.window?.windowScene?.screen.bounds
137
+ let bounds = bounds
138
else { return }
139
bridge.viewController?.view.frame = bounds
140
webView.frame = bounds
0 commit comments