nativescript-vue / nativescript-vue-navigator

A simple router for NativeScript-Vue, built on top of $navigateTo to simplify routing from within components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Changing UIViewControllerBasedStatusBarAppearance breaks UIBarStyle

darrenkhouston opened this issue · comments

When setting the info.plist UIViewControllerBasedStatusBarAppearance to true and the UIStatusBarStyle set to UIStatusBarStyleLightContent, I have no control over the statusbar text color, only the background. If I stop using this plugin and go back to the regular Manual Router, this problem is solved.

Seems to be related to this issue, but this is all I could find about it.

[iOS] Multiple frame breaks UIBarStyle #6771

Could not reproduce it working with the Manual router either, as it seems barStyle has been deprecated?

I managed to get it working fine with

UIApplication.sharedApplication.setStatusBarStyleAnimated(0, true)
// or 
UIApplication.sharedApplication.setStatusBarStyleAnimated(1, true)

Could not reproduce it working with the Manual router either, as it seems barStyle has been deprecated?

I managed to get it working fine with

UIApplication.sharedApplication.setStatusBarStyleAnimated(0, true)
// or 
UIApplication.sharedApplication.setStatusBarStyleAnimated(1, true)

Yep. This fixed the issue for me. Thanks @rigor789