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\
In swift4, You can use this block of code below viewDidLoad() in your ViewController-
viewDidLoad()
ViewController
override var preferredStatusBarStyle : UIStatusBarStyle { return .lightContent }