Skip to content

Instantly share code, notes, and snippets.

@jeswinsimon
Created April 29, 2020 05:30
Show Gist options
  • Save jeswinsimon/16f6d702b67cd515ed40a1e0daa24abe to your computer and use it in GitHub Desktop.
Save jeswinsimon/16f6d702b67cd515ed40a1e0daa24abe to your computer and use it in GitHub Desktop.
Customizing Status Bar Style in SwiftUI
import SwiftUI
class HostingController<ContentView: View>: UIHostingController<ContentView> {
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent // Set preferred status bar style here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment