In Info.plist add:
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleBlackTranslucent</string>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
So you can hide navigation bar and save text color.
In AppDelegate add:
func setStatusBarBackgroundColor() {
guard let statusBar = UIApplication.shared.value(forKeyPath: "statusBarWindow.statusBar") as? UIView else { return }
statusBar.backgroundColor = UIColor.init(red: 65/255.0, green: 65/255.0, blue: 66/255.0, alpha: 100.0)
}