---
title: "drop(_:to:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uicollectionviewdropcoordinator/drop(_:to:)-7w5rn"
---

# drop(_:to:)

Animates the item to an arbitrary location in your view hierarchy.

## Declaration

```swift
func drop(_ dragItem: UIDragItem, to target: UIDragPreviewTarget) -> any UIDragAnimating
```

## Parameters

- `dragItem`: The item that you want to drop.
- `target`: The location at which to drop the item, specified as a point in a view. You can also use the doc://com.apple.uikit/documentation/UIKit/UIDragPreviewTarget object to specify a final transform to apply to the content.

## Discussion

Discussion Use this method to animate drops to any view in your app. For example, you might use this method to drop items onto a tab bar or toolbar that’s part of your interface.

## See Also

### Animating Items to Their Destination

- [drop(_:toItemAt:)](uikit/uicollectionviewdropcoordinator/drop(_:toitemat:).md)
- [drop(_:intoItemAt:rect:)](uikit/uicollectionviewdropcoordinator/drop(_:intoitemat:rect:).md)
- [drop(_:to:)](uikit/uicollectionviewdropcoordinator/drop(_:to:)-l5tg.md)
