This is an automated email from the ASF dual-hosted git repository.

jcesarmobile pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-statusbar.git


The following commit(s) were added to refs/heads/master by this push:
     new 5a3f6bd  refactor: remove hardcoded style with 
UIStatusBarStyleDarkContent (#261)
5a3f6bd is described below

commit 5a3f6bd4cc44083ae6bca65e7096df41de5b025d
Author: jcesarmobile <[email protected]>
AuthorDate: Wed Apr 26 00:47:53 2023 +0200

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to