title: How to hide the status bar in SwiftUI
body: <p>I want to hide the status bar in SwiftUI. I have try the method "statusBar(hidden: true)", but it doesn't work. Is there any solution to make it in SwiftUI.</p>
  
  <p>the demo code as below:</p>
  
  <pre class="lang-swift prettyprint-override"><code>var body: some View {
          VStack {
              Text("Hello World")
  
          }
          .frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity)
          .background(Color.blue)
          .edgesIgnoringSafeArea(.all)
          .statusBar(hidden: true)
  
      }
  </code></pre>