I\'m trying to change the Status Bar color in my Swift app to white, but am hitting a brick wall. I have 3 ViewControllers that are each embedded in a NavigationController (
Step 1. Add to info.plist View controller-based status bar appearance -> NO
Step 2. Add code in method where you need to change status bar color:
UIApplication.shared.statusBarStyle = .lightContent //(or .default)
setNeedsStatusBarAppearanceUpdate()
Key line of code: setNeedsStatusBarAppearanceUpdate()