title: SwiftUI using .alert(isPresented) with a TextField for input?
body: <p>How can I add a TextField to the <code>.alert()</code> function in SwiftUI? I only can find solutions that need Swift, and not SwiftUI.</p>
  <pre><code>.alert(isPresented:$showingAlert) {
      Alert(
          title: Text(&quot;What is your name?&quot;),
          message: Text(&quot;Fill in your name in the TextField beow&quot;),
          primaryButton: .default(Text(&quot;OK&quot;)) {
              print(&quot;Opening...&quot;)
  
          },
          secondaryButton: .cancel() {
              print(&quot;cancelled)
          }
      )
  }
  </code></pre>