Declaration
compose().onMove({
perform: ((arg0: number[], arg1: number) => void) | null,
})nonisolated func onMove(
perform action: Optional<(IndexSet, Int) -> Void>
) -> some DynamicViewContentParameters
options.perform*((arg0: number[], arg1: number) => void) | null
Return value
A view that calls action when elements are moved within the original view.
See also
More in DynamicViewContent modifiers.
- dropDestinationSets the insert action for the dynamic view.
- onDeleteSets 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.
- reorderableEnables reordering of views from this content inside the scope of a reorderable container modifier.