I have used UINavigationController to create navigation flow, first screen is List view controller and second one is detail view controller of list item.
I am hiding navigation bar in both view controllers because I have created my own top bar.
Now I am trying to change status bar content to light content but
override var preferredStatusBarStyle: UIStatusBarStyle{
.lightContent
}
This is not getting called. I read multiple answers about changing status bar content style when UINavigationController is used but none of them help because I am hiding navigation bar.
Navigation controller is embedded in TabBarController.
Attaching the image for reference Image