There was an error while loading. Please reload this page.
1 parent 06921fb commit 0303a85Copy full SHA for 0303a85
1 file changed
status-bar/ios/Sources/StatusBarPlugin/StatusBar.swift
@@ -154,7 +154,7 @@ public class StatusBar {
154
}
155
156
private func getStatusBarFrame() -> CGRect {
157
- return UIApplication.shared.windows.first(where: { $0.isKeyWindow })?.windowScene?.statusBarManager?.statusBarFrame ?? .zero
+ return bridge.viewController?.view.window?.windowScene?.statusBarManager?.statusBarFrame ?? .zero
158
159
160
private func initializeBackgroundViewIfNeeded() {
0 commit comments