Just downloaded the new xCode 10.0 and saw that the old statusBarStyle has been deprecated since iOS 9.0.
Warning: Setter for \'statusBarStyle\
Setter for \'statusBarStyle\
None of the other suggestions worked for me. I ended up getting it to work by:
Setting:
override var preferredStatusBarStyle : UIStatusBarStyle { return .lightContent }
Calling:
setNeedsStatusBarAppearanceUpdate()