refactor: remove hardcoded style with UIStatusBarStyleDarkContent (#261)

This commit is contained in:
jcesarmobile 2023-04-26 00:47:53 +02:00 committed by GitHub
parent 307cd92ea1
commit 5a3f6bd4cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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];
}