File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff 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
151146final 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
You can’t perform that action at this time.
0 commit comments