title: SwiftUI [iPadOS]: Why TextField embedded in a Sheet generates Layout Constraints conflicts when it becomes first responder?
body: <p>I have a weird issue when I embed a TextField in a modal (sheet). I wrote a  basic sample code to showcase the issue:</p>
  <pre><code>struct ContentView: View {
    @State var showSheet = false
    @State var text = &quot;&quot;
  
    var body: some View {
      Button(&quot;Show Text Field&quot;, action: {
        showSheet = true
      })
      .sheet(isPresented: $showSheet, content: {
        TextField(&quot;Type here...&quot;, text: $text)
          .textFieldStyle(RoundedBorderTextFieldStyle())
          .disableAutocorrection(true)
          .frame(width: 300, height: 60, alignment: .center)
      })
    }
  }
  
  struct ContentView_Previews: PreviewProvider {
      static var previews: some View {
          ContentView()
      }
  }
  </code></pre>
  <p>With this simple basic code, iPad OS generates a bunch of Layer Constraints conflicts when the TextField becomes first responder:</p>
  <p><a href="https://i.stack.imgur.com/kk0Df.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kk0Df.png" alt="Xcode Console" /></a></p>
  <p>Any idea how to fix that?
  Super thanks.</p>