Contents

draggable(_:)

Activates this row as the source of a drag and drop operation.

Declaration

@MainActor @preconcurrency func draggable<T>(_ payload: @autoclosure  @escaping () -> T) -> some TableRowContent<Self.TableRowValue> where T : Transferable

Parameters

  • payload:

    A closure that returns a single instance or a value conforming to Transferable that represents the draggable data from this view.

Return Value

A row that activates this row as the source of a drag and drop operation.

Discussion

Applying the draggable(_:) modifier adds the appropriate gestures for drag and drop to this row.

See Also

Managing interaction