jtumain commented on issue #164:
URL: 
https://github.com/apache/cordova-plugin-statusbar/issues/164#issuecomment-706035690


   @derweise I did the following to achieve this. I made a new styleDarkContent 
function.
   
   ```
   -(void) styleDarkContent:(CDVInvokedUrlCommand*)command
   {
       if (@available(iOS 13, *)) {
           [self setStyleForStatusBar:UIStatusBarStyleDarkContent];
       } else {
           [self styleDefault:command];
       }
   }
   ```
   
   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.
   `- (void) styleDarkContent:(CDVInvokedUrlCommand*)command;`
   
   And if you're using Ionic or TS interfaces added a styleDarkContent function 
in the type definitions file.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to