title: SwiftUI: Cannot convert value of type 'Float' to expected argument type '()'
body: <p>I'm trying to create rows of Textfields and then store the user's input to a dictionary.</p>
  <pre><code>@Binding var numPeople: Int
  @State var dict: [String : Float] = [:]
  @State var name: String = &quot;&quot;
  @State var amount: Float = 0.00
  .
  .
  .
  ForEach(1...numPeople, id:\.self) { stack in
      HStack {
           TextField(&quot;Name&quot;, text: $name)
               .padding()
                          
           Text(&quot;Amount in $:&quot;)
                          
           TextField(&quot;&quot;, value: $amount, formatter: NumberFormatter())
               .keyboardType(.numberPad)
               .onReceive(Just(amount)) { // I do have Combine imported
                   dict[name] = amount
               }
               .padding()
       }
  }
  </code></pre>
  <p>But it seems to not work, and I can't figure out why (I'm pretty new to this language). I even checked for an empty <code>VStack</code>, <code>HStack</code>, etc. All I have is <code>Cannot convert value of type 'Float' to expected argument type '()'.</code></p>
  <p>Thank you!</p>