title: SwiftUI value in text doesn’t change
body: <p>I don’t understand why the Text Value doesn’t change. if I remove the TextField, the Text value change :/ is there something about combine or SwiftUI I am missing ?</p>
  <pre class="lang-swift prettyprint-override"><code>struct ContentView2: View{
      @State private var numTouches: Int = 0
      @State private var num: String = &quot;&quot;
      
      var body: some View {
          VStack{
              Button(&quot;Touch me pls&quot;){
                  self.numTouches += 1 
              }
              Text(&quot;\(numTouches)&quot;)
              TextField(&quot;Hello enter a number&quot;, text: $num)
          }.onReceive(Just(num)) { newValue in
              if newValue == &quot;&quot; {
                  self.numTouches = 0
              } else {
                  self.numTouches = Int.init(newValue)!
              } 
          }
      }
  }
  </code></pre>