From 7d5d067f0391a9b07fae2ea89de818d0f2247527 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Sun, 17 Nov 2019 12:55:08 +0100 Subject: [PATCH] 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