---
title: "draggable(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/tablerowcontent/draggable(_:)"
---

# draggable(_:)

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

## Declaration

```swift
@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 doc://com.apple.documentation/documentation/CoreTransferable/Transferable that represents the draggable data from this view.

## Return Value

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

## Discussion

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

## See Also

### Managing interaction

- [dropDestination(for:action:)](swiftui/tablerowcontent/dropdestination(for:action:).md)
- [onHover(perform:)](swiftui/tablerowcontent/onhover(perform:).md)
- [itemProvider(_:)](swiftui/tablerowcontent/itemprovider(_:).md)
- [ItemProviderTableRowModifier](swiftui/itemprovidertablerowmodifier.md)
