title: Warning: "Modifying state during view update, this will cause undefined behavior." in UIViewRepresentable
body: <p>So I have a UIViewRepresentable which wraps a UITextField, and I get this error during the <code>textFieldshouldChangeCharactersInRange</code> method:</p>
  <pre><code>struct MyTextField: UIViewRepresentable {
  
      class Coordinator: NSObject, UITextFieldDelegate, ObservableObject {
      
          @Binding var text: String
  
          func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -&gt; Bool {
              if let currentValue = textField.text as NSString? {
                  let proposedValue = currentValue.replacingCharacters(in: range, with: string)
                  text = proposedValue // Warning is thrown from here
              }
              return true
          }
      }
  ...
  
  </code></pre>
  <p>What's the correct way to update the binding here without triggering this warning?</p>