Creating the Edit View — iOS App Dev Tutorials | Apple Developer Documentation

PHOTO EMBED

Tue Mar 29 2022 00:24:33 GMT+0000 (Coordinated Universal Time)

Saved by @pham24n #swift

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

remove to delete something as users swipe to delete

https://developer.apple.com/tutorials/app-dev-training/updating-app-data