I have a lot to learn about what enables this syntax for two-way binding (note the $
):
struct ContentView: View {
@State private var name = ""
var body: some View {
Form {
TextField("Enter your name", text: $name)
Text("Hello, world!")
}
}
}