Section3. Display attendees in the edit view - Step2
ForEach(data.attendees) { attendee in
Text(attendee.name)
}
각 행에 data.attendees를 뿌릴 건데, attendee를 Text(attendee.name)으로 리턴한다.
Section3. Display attendees in the edit view - Step3
.onDelete { indices in
data.attendees.remove(atOffsets: indices)
}