title: A text field wrapped with UIKit protrudes from the area when typing a lot of text
body: <p>Creating a text field in SwiftUI using UI kit.
  However, the text is displayed as overflowing.
  What should I add to the custom?</p>
  <p><a href="https://i.stack.imgur.com/TDvxQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TDvxQ.jpg" alt="enter image description here" /></a>
  Originally, I want to make this red area a text field area.</p>
  <p><a href="https://i.stack.imgur.com/pQDIs.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pQDIs.gif" alt="enter image description here" /></a></p>
  <pre><code>struct FirstResponderTextField: UIViewRepresentable {
      @Binding var text: String
      let placeholder: String
      class Coordinator: NSObject, UITextFieldDelegate {
  
          @Binding var text: String
          var becameFirstResponder = false
          init(text: Binding&lt;String&gt;) {
              self ._text = text
          }
          func textFieldDidChangeSelection(_ textField: UITextField) {
              text = textField.text ?? &quot;&quot;
          }
      }
  
      func makeCoordinator() -&gt; Coordinator {
          return Coordinator(text: $text)
  
      }
      func makeUIView(context: Context) -&gt; some UIView {
          let textField = UITextField()
          textField.font = UIFont.systemFont(ofSize: 40, weight: .bold).rounded()
          textField.delegate = context.coordinator
          textField.placeholder = placeholder
          return textField
      }
  
      func updateUIView(_ uiView: UIViewType, context: Context) {
          if !context.coordinator.becameFirstResponder {
              uiView.becomeFirstResponder()
              context.coordinator.becameFirstResponder = true
          }
      }
  }
  extension UIFont {
      func rounded() -&gt; UIFont {
          if let descriptor = self.fontDescriptor.withDesign(.rounded) {
              let fontSize = self.pointSize
              return UIFont(descriptor: descriptor, size: fontSize)
          } else {
              return self
          }
      }
  }
  </code></pre>
  <p>I'm new to SwiftUI and would appreciate any comments or feedback.</p>