---
title: "drop(_:toRowAt:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitableviewdropcoordinator/drop(_:torowat:)"
---

# drop(_:toRowAt:)

Animates the item to the specified index path in the table view.

## Declaration

```swift
func drop(_ dragItem: UIDragItem, toRowAt indexPath: IndexPath) -> any UIDragAnimating
```

## Parameters

- `dragItem`: The dragged item that you want to animate into position.
- `indexPath`: The index path to use as the destination for the animation.

## Mentioned in

Supporting drag and drop in table views

## Discussion

Discussion Use this method to animate the dragged item to the specific location in the table view. Typically, you use this method for content that originated in the collection view and is moving to a new location.

## See Also

### Animating rows to their destination

- [drop(_:intoRowAt:rect:)](uikit/uitableviewdropcoordinator/drop(_:intorowat:rect:).md)
- [drop(_:to:)](uikit/uitableviewdropcoordinator/drop(_:to:)-57wx.md)
- [drop(_:to:)](uikit/uitableviewdropcoordinator/drop(_:to:)-3znax.md)
