- How do I change the status bar color in iOS 15 Swift?
- How do I change the color of my status bar iOS?
How do I change the status bar color in iOS 15 Swift?
If you are using Storyboard , go to the NavigationController , select the navigationBar , click on the Attributes Inspector , then change the style . if you need light content (white status bar) set it anything except default lets say set style black And if you want dark content (black status bar) set it default .
How do I change the color of my status bar iOS?
You can control the status bar text color by override preferredStatusBarStyle property in a view controller and return the style you want. In this example, we set the status bar text color to white. Make sure you set "View controller-based status bar appearance" ( UIViewControllerBasedStatusBarAppearance ) key in Info.