Skip to main content
Fix code formatting
Source Link
anothernode
  • 5.4k
  • 14
  • 48
  • 66

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch.

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any] ?) -> Bool {
    // Override point for customization after application launch.

    UINavigationBar.appearance().barStyle = .blackOpaque
    return true
}

thisThis works for me, as my navigation barTintColor was black and unable to see the status bar when.

When set above code it didFinishLaunch status bar appears in white.

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch.

UINavigationBar.appearance().barStyle = .blackOpaque
return true
}

this works for me, as my navigation barTintColor was black and unable to see the status bar when set above code it didFinishLaunch status bar appears in white.

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any] ?) -> Bool {
    // Override point for customization after application launch.

    UINavigationBar.appearance().barStyle = .blackOpaque
    return true
}

This works for me, as my navigation barTintColor was black and unable to see the status bar.

When set above code it didFinishLaunch status bar appears in white.

Source Link
ioSana
  • 127
  • 2

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch.

UINavigationBar.appearance().barStyle = .blackOpaque
return true
}

this works for me, as my navigation barTintColor was black and unable to see the status bar when set above code it didFinishLaunch status bar appears in white.