<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/TableRowContent/dropDestination(for:action:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15TableRowContentPAAE15dropDestination3for6actionQrqd__m_ySayqd__Gct16CoreTransferable0K0Rd__lF"
  },
  "title" : "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.

```
@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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)