Section(header: Text("Attendees")) { ForEach(data.attendees) { attendee in Text(attendee.name) } .onDelete { indices in data.attendees.remove(atOffsets: indices) } }
Section(header: Text("Attendees")) { ForEach(data.attendees) { attendee in Text(attendee.name) } .onDelete { indices in data.attendees.remove(atOffsets: indices) } }