@Binding: Two-Way Data Flow
Passing mutable state down the view hierarchy with @Binding and $ prefix.
Welcome
`@Binding` creates a two-way connection between a parent's state and a child view, allowing the child to read and write the parent's value without owning it.
Creating a Binding
```swift
struct Parent: View {
@State private var name = ""
var body: some View {
ChildView(name: $name) // $ creates Binding
}
}
struct ChildView: View {
@Binding var name: String
var body: some View { TextField("Name", text: $name) }
}
```