File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,11 @@ struct IntrospectionView<Target: PlatformEntity>: PlatformViewControllerRepresen
115
115
guard let target = selector ( controller) else {
116
116
return
117
117
}
118
+ #if canImport(UIKit)
119
+ if let target = target as? UIViewController {
120
+ controller. statusBarStyle = target. preferredStatusBarStyle
121
+ }
122
+ #endif
118
123
context. coordinator. target = target
119
124
customize ( target)
120
125
controller. handler = nil
@@ -146,6 +151,9 @@ struct IntrospectionView<Target: PlatformEntity>: PlatformViewControllerRepresen
146
151
final class IntrospectionPlatformViewController : PlatformViewController {
147
152
let id : IntrospectionViewID
148
153
var handler : ( ( ) -> Void ) ? = nil
154
+ #if canImport(UIKit)
155
+ var statusBarStyle : UIStatusBarStyle ?
156
+ #endif
149
157
150
158
fileprivate init (
151
159
id: IntrospectionViewID ,
@@ -169,6 +177,10 @@ final class IntrospectionPlatformViewController: PlatformViewController {
169
177
}
170
178
171
179
#if canImport(UIKit)
180
+ override var preferredStatusBarStyle : UIStatusBarStyle {
181
+ statusBarStyle ?? super. preferredStatusBarStyle
182
+ }
183
+
172
184
override func viewDidLoad( ) {
173
185
super. viewDidLoad ( )
174
186
view. introspectionController = self
You can’t perform that action at this time.
0 commit comments