<!--
{
  "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/draggable(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15TableRowContentPAAE9draggableyQrqd__yXA16CoreTransferable0H0Rd__lF"
  },
  "title" : "draggable(_:)"
}
-->

# draggable(_:)

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

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

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.

---

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)