onDelete
Sets the deletion action for the dynamic view. You must delete the corresponding item within action, as it will be called after the row has already been removed from the List.
Declaration
compose().onDelete({
perform: ((arg0: number[]) => void) | null,
})nonisolated func onDelete(
perform action: Optional<(IndexSet) -> Void>
) -> some DynamicViewContentParameters
options.perform*((arg0: number[]) => void) | null
Return value
A view that calls action when elements are deleted from the original view.
See also
More in DynamicViewContent modifiers.