Change Status Bar Text Colour in iOS

PHOTO EMBED

Saved by [deleted user] #ios #swift

// Preferred status bar style lightContent to use on dark background.
// Swift 3
override var preferredStatusBarStyle: UIStatusBarStyle {
    return .lightContent
}
content_copyCOPY

Set the UIViewControllerBasedStatusBarAppearance to YES in the .plist file. In the viewDidLoad do a [self setNeedsStatusBarAppearanceUpdate]; Add the following method:

https://stackoverflow.com/questions/17678881/how-to-change-status-bar-text-color-in-ios