From 5a3f6bd4cc44083ae6bca65e7096df41de5b025d Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Wed, 26 Apr 2023 00:47:53 +0200 Subject: [PATCH] refactor: remove hardcoded style with UIStatusBarStyleDarkContent (#261) --- src/ios/CDVStatusBar.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ios/CDVStatusBar.m b/src/ios/CDVStatusBar.m index c825c1a..3e788b8 100644 --- a/src/ios/CDVStatusBar.m +++ b/src/ios/CDVStatusBar.m @@ -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]; }