<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableViewDelegate/tableView(_:targetIndexPathForMoveFromRowAt:toProposedIndexPath:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITableViewDelegate(im)tableView:targetIndexPathForMoveFromRowAtIndexPath:toProposedIndexPath:"
  },
  "title" : "tableView(_:targetIndexPathForMoveFromRowAt:toProposedIndexPath:)"
}
-->

# tableView(_:targetIndexPathForMoveFromRowAt:toProposedIndexPath:)

Asks the delegate to return a new index path to retarget a proposed move of a row.

```
optional func tableView(_ tableView: UITableView, targetIndexPathForMoveFromRowAt sourceIndexPath: IndexPath, toProposedIndexPath proposedDestinationIndexPath: IndexPath) -> IndexPath
```

## Parameters

`tableView`

The table view that is requesting this information.

`sourceIndexPath`

An index path identifying the original location of a row (in its section) that is being dragged.

`proposedDestinationIndexPath`

An index path identifying the currently proposed destination of the row being dragged.

## Return Value

An index path locating the desired row destination for the move operation. Return `proposedDestinationIndexPath` if that location is suitable.

## Discussion

This method allows customization of the target row for a particular row as it is being moved up and down a table view.  As the dragged row hovers over another row, the destination row slides downward to visually make room for the relocation; this is the location identified by `proposedDestinationIndexPath`.

---

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)