title: How to handle onChange of Text event in SwiftUI?
body: <p>I have a ContentView where I have a variable:</p>
  <pre><code>@State private var textToShow = &quot;Some Text&quot;
  </code></pre>
  <p>That I show in:</p>
  <pre><code>Text(textToShow)
  </code></pre>
  <p>I have a button where when I click it, it changes <code>textToShow</code> to equal &quot;Changed Text&quot;. What is the right way to attach some kind of event that triggers when the Text changes? I am looking for something like a Text(textToShow).onChange(print(&quot;Text Changed&quot;)).</p>
  <p>Note that I do not have any <code>IBAction</code> and I am not using any storyboards.</p>