Created
April 29, 2020 05:30
-
-
Save jeswinsimon/16f6d702b67cd515ed40a1e0daa24abe to your computer and use it in GitHub Desktop.
Customizing Status Bar Style in SwiftUI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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