@capacitor/status-bar 7.0.2 → 7.0.3-dev-2401-20250828T122205.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -124,9 +124,17 @@ public class StatusBar {
124
124
  }
125
125
 
126
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
+
127
135
  guard
128
136
  let webView = bridge.webView,
129
- let bounds = bridge.viewController?.view.window?.windowScene?.screen.bounds
137
+ let bounds = bounds
130
138
  else { return }
131
139
  bridge.viewController?.view.frame = bounds
132
140
  webView.frame = bounds
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/status-bar",
3
- "version": "7.0.2",
3
+ "version": "7.0.3-dev-2401-20250828T122205.0",
4
4
  "description": "The StatusBar API Provides methods for configuring the style of the Status Bar, along with showing or hiding it.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -48,6 +48,7 @@
48
48
  },
49
49
  "devDependencies": {
50
50
  "@capacitor/android": "^7.0.0",
51
+ "@capacitor/cli": "^7.0.0",
51
52
  "@capacitor/core": "^7.0.0",
52
53
  "@capacitor/docgen": "0.2.2",
53
54
  "@capacitor/ios": "^7.0.0",
@@ -80,6 +81,5 @@
80
81
  },
81
82
  "publishConfig": {
82
83
  "access": "public"
83
- },
84
- "gitHead": "7c53a4c249abe958983f1ac9df04dec7ab89c10e"
84
+ }
85
85
  }