This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
shell/platform/darwin/ios/framework/Source Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -166,17 +166,22 @@ - (void)restoreSystemChromeSystemUIOverlays {
166
166
}
167
167
168
168
- (void )setSystemChromeSystemUIOverlayStyle : (NSDictionary *)message {
169
- NSString * style = message[@" statusBarBrightness" ];
170
- if (style == (id )[NSNull null ])
169
+ NSString * brightness = message[@" statusBarBrightness" ];
170
+ if (brightness == (id )[NSNull null ])
171
171
return ;
172
172
173
173
UIStatusBarStyle statusBarStyle;
174
- if ([style isEqualToString: @" Brightness.dark" ])
174
+ if ([brightness isEqualToString: @" Brightness.dark" ]) {
175
175
statusBarStyle = UIStatusBarStyleLightContent;
176
- else if ([style isEqualToString: @" Brightness.light" ])
177
- statusBarStyle = UIStatusBarStyleDefault;
178
- else
176
+ } else if ([brightness isEqualToString: @" Brightness.light" ]) {
177
+ if (@available (iOS 13 , *)) {
178
+ statusBarStyle = UIStatusBarStyleDarkContent;
179
+ } else {
180
+ statusBarStyle = UIStatusBarStyleDefault;
181
+ }
182
+ } else {
179
183
return ;
184
+ }
180
185
181
186
NSNumber * infoValue = [[NSBundle mainBundle ]
182
187
objectForInfoDictionaryKey: @" UIViewControllerBasedStatusBarAppearance" ];
You can’t perform that action at this time.
0 commit comments