1

How do I rewrite the code snippet according to this; Setter for 'statusBarStyle' was deprecated in iOS 9.0: Use -[UIViewController preferredStatusBarStyle]

func application(_ application: UIApplication, 
                    didFinishLaunchingWithOptions launchOptions: 
       [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
       FirebaseApp.configure()
       UIApplication.shared.statusBarStyle = .lightContent

        return true
    }
Das Mupp
  • 49
  • 5

1 Answers1

0

This is the new method for status bar styles

override var preferredStatusBarStyle: UIStatusBarStyle {     
      return .lightContent
}
Mantu
  • 1,017
  • 1
  • 10
  • 21