<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableViewDragDelegate/tableView(_:dragPreviewParametersForRowAt:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITableViewDragDelegate(im)tableView:dragPreviewParametersForRowAtIndexPath:"
  },
  "title" : "tableView(_:dragPreviewParametersForRowAt:)"
}
-->

# tableView(_:dragPreviewParametersForRowAt:)

Returns custom information about how to display the row at the specified location during the drag.

```
optional func tableView(_ tableView: UITableView, dragPreviewParametersForRowAt indexPath: IndexPath) -> UIDragPreviewParameters?
```

## Parameters

`tableView`

The table view from which the drag operation originated.

`indexPath`

The index path of the row being dragged.

## Return Value

A [`UIDragPreviewParameters`](/documentation/UIKit/UIDragPreviewParameters) object containing information about how to customize the row’s appearance. Return `nil` to use the default appearance.

## Discussion

Use this method to customize the appearance of the row during drags. For example, you might use this method to specify that only part of the cell’s visible content should be used for the drag preview. If you don’t implement this method, or if you return `nil`, the drag preview displays the row’s visible content.

In your implementation, create a [`UIDragPreviewParameters`](/documentation/UIKit/UIDragPreviewParameters) object and specify the custom preview information for the specified row. Use the parameters to specify the portion of the row that you want to display or to change the background color drawn beneath the row’s contents.

---

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)