title: How to detect when TextEditor is focused (tapped)
body: <p>I have a custom <code>TextField</code> where I detect when the user taps on it to change the look of the field, but I tried to add the same look for the <code>TextEditor</code>, but it doesn't have an <code>onEditingChanged</code> option.</p>
  <p>This is my text field:</p>
  <pre class="lang-swift prettyprint-override"><code>struct CustomTextField : View {
      @Binding var text : String
      @State private var isEditing = false
      @State var isDisabled = false
      
      init(text : Binding&lt;String&gt;, isDisabled : Bool = false ){
          self._text = text
          self.isDisabled = isDisabled
      }
      
      var body: some View {
          TextField(&quot;&quot;, text: $text, onEditingChanged: {
              isEditing = $0
          })
          .padding(8)
          .clipShape(RoundedRectangle(cornerRadius: 4))
          .background (
              RoundedRectangle(cornerRadius: 4)
                  .stroke(isEditing ? Color(&quot;Accent&quot;) : Color(&quot;Gray&quot;), lineWidth: isDisabled ? 0 : 1)
  
          )
      }
  }
  </code></pre>
  <p>I thought of adding a tap gesture recognizer, but it will only detect when I click, not when I leave the text editor.</p>
  <p>Is there a way to detect the focus state of a <code>TextEditor</code>?</p>