You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by jc...@apache.org on 2019/11/17 11:55:14 UTC
[cordova-plugin-statusbar] branch master updated: fix(ios): make
default set black text on iOS 13 too (#169)
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 7d5d067 fix(ios): make default set black text on iOS 13 too (#169)
7d5d067 is described below
commit 7d5d067f0391a9b07fae2ea89de818d0f2247527
Author: jcesarmobile <jc...@gmail.com>
AuthorDate: Sun Nov 17 12:55:08 2019 +0100
fix(ios): make default set black text on iOS 13 too (#169)
---
src/ios/CDVStatusBar.m | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/ios/CDVStatusBar.m b/src/ios/CDVStatusBar.m
index 2011163..1a42639 100644
--- a/src/ios/CDVStatusBar.m
+++ b/src/ios/CDVStatusBar.m
@@ -294,7 +294,12 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
- (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
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org