How can I change the color of the status bar when using a SplitViewController? When using just a viewcontroller with a navigationcontroller, the color of the status bar changes automatically by using ①. Are there any ways I can change the status bar automatically?
I want to add a dark mode to my app so, I can't change the status bar style from the project/target settings.
In my app I have a Notification that turns on and off my dark mode setting.
I have tried
①self.navigationController?.navigationBar.barStyle = .black
②changing the info.plist
③Status bar Light content doesnot appear in Navigation Controller using Split view controller
This is what it looks like and I'm using ①to change the color of the navigationbar