---
title: "dropDestination(for:action:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/tablerowcontent/dropdestination(for:action:)"
---

# dropDestination(for:action:)

Defines the entire row as a destination of a drag and drop operation that handles the dropped content with a closure that you specify.

## Declaration

```swift
@MainActor @preconcurrency func dropDestination<T>(for payloadType: T.Type = T.self, action: @escaping ([T]) -> Void) -> some TableRowContent<Self.TableRowValue> where T : Transferable

```

## Parameters

- `payloadType`: The expected type of the dropped models.
- `action`: A closure that takes the dropped content and responds with true if the drop operation was successful; otherwise, return false.

## Return Value

Return Value A row that provides a drop destination for a drag operation of the specified type.

## See Also

### Managing interaction

- [draggable(_:)](swiftui/tablerowcontent/draggable(_:).md)
- [onHover(perform:)](swiftui/tablerowcontent/onhover(perform:).md)
- [itemProvider(_:)](swiftui/tablerowcontent/itemprovider(_:).md)
- [ItemProviderTableRowModifier](swiftui/itemprovidertablerowmodifier.md)
