mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2025-01-19 01:12:49 +08:00
fix(ios): make default set black text on iOS 13 too (#169)
This commit is contained in:
parent
217f792101
commit
7d5d067f03
@ -294,7 +294,12 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
|
|||||||
|
|
||||||
- (void) styleDefault:(CDVInvokedUrlCommand*)command
|
- (void) styleDefault:(CDVInvokedUrlCommand*)command
|
||||||
{
|
{
|
||||||
[self setStyleForStatusBar:UIStatusBarStyleDefault];
|
if (@available(iOS 13.0, *)) {
|
||||||
|
// TODO - Replace with UIStatusBarStyleDarkContent once Xcode 10 support is dropped
|
||||||
|
[self setStyleForStatusBar:3];
|
||||||
|
} else {
|
||||||
|
[self setStyleForStatusBar:UIStatusBarStyleDefault];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) styleLightContent:(CDVInvokedUrlCommand*)command
|
- (void) styleLightContent:(CDVInvokedUrlCommand*)command
|
||||||
|
Loading…
Reference in New Issue
Block a user