Skip to content

Commit 3e52295

Browse files
authored
Fix occasionally wrong status bar style (#313)
1 parent 7165cad commit 3e52295

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/IntrospectionView.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,12 @@ final class IntrospectionPlatformViewController: PlatformViewController {
169169
}
170170

171171
#if canImport(UIKit)
172+
#if os(iOS)
173+
override var preferredStatusBarStyle: UIStatusBarStyle {
174+
parent?.preferredStatusBarStyle ?? super.preferredStatusBarStyle
175+
}
176+
#endif
177+
172178
override func viewDidLoad() {
173179
super.viewDidLoad()
174180
view.introspectionController = self

0 commit comments

Comments
 (0)