Pass on Binding

I have this:

struct TableRow: View {
    @Binding var data: TodoItem
    var body: some View {
        ...
    }
}

and this:

List {
    ForEach(data) { datum in
        TableRow(data: ???) // <- what goes here?
            .swipeActions {
                Button(role: .destructive) {
                    data.delete(datum)
                } label: {
                    Label("Delete", systemImage: "trash")
                }
          }
    }
}

Learn

Sample code

struct ContentView: View {
    //This is using the Binding propertyWrapper
    @Binding var data: [TodoItem]
    
    var body: some View {
        List {
            ForEach($data) { datum in
                TableRow(data: datum) // <- what goes here?
                    .swipeActions {
                        Button(role: .destructive) {
                            data.delete(datum) //data.removeAll { $0 == datum.wrappedValue }
                        } label: {
                            Label("Delete", systemImage: "trash")
                        }
                  }
            }
        }
    }
}
Pass on Binding
 
 
Q