I've been researching everywhere I can, and I have found nothing. I am trying to find a way so that my alert that occurs within my app can drop down but cover the status bar elements (wifi, time, etc). I'm at a loss and was curious if anyone knew how.
How can I have a view cover the status bar?
In UIKit, you can call
override var prefersStatusBarHidden: Bool {
return true
}
In SwiftUI, equivalent by calingl the modifier:
struct ContentView: View {
var body: some View {
Text("Hello, World!")
.statusBar(hidden: true)
}
}
More details here: https://medium.com/app-makers/how-to-hide-the-status-bar-in-swiftui-all-methods-explained-07eeca7ac3d6