I have a Binding like this:
@State var entires: [Entry]
Where Entry has one property called amount which is a float.
Now I'm trying to add it to a TextField inside a List:
List {
ForEach(entries, id: \.self) { (entry: Entry) in
TextField("Amount", text: "\(entry.amount)")
}
}
Then its telling me that its a String and not Binding<String>. But where to place the $ to have it right?