---
title: "drop(_:intoItemAt:rect:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uicollectionviewdropcoordinator/drop(_:intoitemat:rect:)"
---

# drop(_:intoItemAt:rect:)

Animates the item to the specified rectangle in the collection view.

## Declaration

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

## Parameters

- `dragItem`: The dragged item that you want to animate into position.
- `indexPath`: The index path in the collection view at which to incorporate the item.
- `rect`: The destination rectangle to use for the animation. Specify the rectangle in the coordinate system of the cell at the specified indexPath. UIKit animates the drag item to the specified rectangle.

## Discussion

Discussion Use this method to animate drops where you incorporate the dragged items into another item of your collection view. For example, when incorporating items into a folder, you’d use this method to animate the items in a way that makes it look like they were placed into the folder.

## See Also

### Animating Items to Their Destination

- [drop(_:toItemAt:)](uikit/uicollectionviewdropcoordinator/drop(_:toitemat:).md)
- [drop(_:to:)](uikit/uicollectionviewdropcoordinator/drop(_:to:)-7w5rn.md)
- [drop(_:to:)](uikit/uicollectionviewdropcoordinator/drop(_:to:)-l5tg.md)
