title: SwiftUI Manually control the submission of Text Filed
body: <pre><code>TextField(&quot;&quot;, text: $searchText, onCommit: { print(&quot;Commit&quot;) })
  Button(action: {
      searchText = &quot;test&quot; 
      // Do Something
  }) { Text(&quot;Search test&quot;) }
  </code></pre>
  <p>How do I make the Text Filed submit when I press the button</p>