Skip to content

Glossary: SwiftUI

.onDelete

Also written: onDelete

A modifier on a ForEach that gives each row the standard swipe-to-delete. Its closure receives an IndexSet of deleted positions.

Where the book teaches it

Related terms

IndexSetForEach.swipeActions