-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new styleDarkContent #164
Comments
What's the status with this? As of right now, we cannot make the status bar dark on a light background with iOS 13. |
You can with default, but it’s not released |
So this fix will be implemented in the next release of this plugin? And if so, do you know when that might be? |
Sorry, just a bit confused with your statement |
Yes, will be on next release, or you can install from github directly |
Oh legit! I see what you mean now. I can do it now with sticking with default because you already committed a change. I will do that :) Thanks again! |
I think UIStatusBarStyleDefault will be useful as well for device configuration related theme, so please do not deprecate StatusBar.styleDefault. |
for me works this if( this.style == 'dark') { But I change this line in CDVStatusBar.m in my xcode project
|
How can I retrieve in |
@derweise I did the following to achieve this. I made a new styleDarkContent function.
If iOS 13 or greater style dark content because it isn't supported by older versions; else use default. I also added this to the header file. And if you're using Ionic or TS interfaces added a styleDarkContent function in the type definitions file. |
That sets the native value to
UIStatusBarStyleDarkContent
. Note that it's an iOS 13 value, so in older version it should set the value toUIStatusBarStyleDefault
as it used to have the same effect (set text to black color)The text was updated successfully, but these errors were encountered: