title: FirstResponder & :onCommit on TextField in SwiftUI
body: <p>In a <code>SwiftUI</code> app, I need to set the focus on a <code>TextField</code> and bring the keyboard automatically, in standard Swift this would be done with:</p>
  <pre><code>  field.becomeFirstResponder()
  </code></pre>
  <p>But this does not seem to exist in <code>SwiftUI</code>.</p>
  <p>I found a work around <a href="https://stackoverflow.com/questions/56507839/swiftui-how-to-make-textfield-become-first-responder">here</a>.</p>
  <p>But, my field uses :onCommit; which is not in the sample code.</p>
  <p>What is the way to set the :onCommit functionality when using <code>UIViewRepresentable</code> ?</p>