mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2025-01-18 17:02:49 +08:00
refactor: remove hardcoded style with UIStatusBarStyleDarkContent (#261)
This commit is contained in:
parent
307cd92ea1
commit
5a3f6bd4cc
@ -295,8 +295,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
|
||||
- (void) styleDefault:(CDVInvokedUrlCommand*)command
|
||||
{
|
||||
if (@available(iOS 13.0, *)) {
|
||||
// TODO - Replace with UIStatusBarStyleDarkContent once Xcode 10 support is dropped
|
||||
[self setStyleForStatusBar:3];
|
||||
[self setStyleForStatusBar:UIStatusBarStyleDarkContent];
|
||||
} else {
|
||||
[self setStyleForStatusBar:UIStatusBarStyleDefault];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user