title: Is it possible to make a modal non-dismissible in SwiftUI?
body: <p>I am creating an App where the login / register part is inside a modal, which is shown if the user is not logged in.</p>
  
  <p>The problem is, that the user can dismiss the modal by swiping it down...</p>
  
  <p>Is it possible to prevent this?</p>
  
  <pre><code>var body: some View {
      TabView(selection: $selection) {
          App()
      }.sheet(isPresented: self.$showSheet) { // This needs to be non-dismissible
          LoginRegister()
      }
  }
  </code></pre>
  
  <p>Second example:</p>
  
  <p>I am using a modal to ask for information. The user should not be able to quit this process except by dismissing the modal with save button. The user has to input information before the button works. Unfortunately the modal can be dismissed by swiping it down.</p>
  
  <p>Is it possible to prevent this?</p>