Skip to content

Commit b220886

Browse files
committed
wip
1 parent b4816e4 commit b220886

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Sources/IntrospectionView.swift

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,6 @@ struct IntrospectionView<Target: PlatformEntity>: PlatformViewControllerRepresen
115115
guard let target = selector(controller) else {
116116
return
117117
}
118-
#if os(iOS)
119-
if let target = target as? UIViewController {
120-
controller.statusBarStyle = target.preferredStatusBarStyle
121-
}
122-
#endif
123118
context.coordinator.target = target
124119
customize(target)
125120
controller.handler = nil
@@ -151,9 +146,6 @@ struct IntrospectionView<Target: PlatformEntity>: PlatformViewControllerRepresen
151146
final class IntrospectionPlatformViewController: PlatformViewController {
152147
let id: IntrospectionViewID
153148
var handler: (() -> Void)? = nil
154-
#if os(iOS)
155-
var statusBarStyle: UIStatusBarStyle?
156-
#endif
157149

158150
fileprivate init(
159151
id: IntrospectionViewID,
@@ -179,7 +171,7 @@ final class IntrospectionPlatformViewController: PlatformViewController {
179171
#if canImport(UIKit)
180172
#if os(iOS)
181173
override var preferredStatusBarStyle: UIStatusBarStyle {
182-
statusBarStyle ?? super.preferredStatusBarStyle
174+
parent?.preferredStatusBarStyle ?? super.preferredStatusBarStyle
183175
}
184176
#endif
185177

0 commit comments

Comments
 (0)