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

# collectionView(_:performDropWith:)

Tells your delegate to incorporate the drop data into the collection view.

```
func collectionView(_ collectionView: UICollectionView, performDropWith coordinator: any UICollectionViewDropCoordinator)
```

## Parameters

`collectionView`

The collection view that received the drop.

`coordinator`

The coordinator object to use when handling the drop. Use this object to coordinate your custom behavior with the default behavior of the collection view.

## Discussion

Use this method to accept the dropped content and integrate it into your collection view. In your implementation, iterate over the [`items`](/documentation/UIKit/UICollectionViewDropCoordinator/items) property of the `coordinator` object and fetch the data from each [`UIDragItem`](/documentation/UIKit/UIDragItem). Incorporate the data into your collection view’s data source and update the collection view itself by inserting any needed items. When incorporating items, use the methods of the `coordinator` object to animate the transition from the drag item’s preview to the corresponding item in your collection view. For items that you incorporate immediately, you can use the [`drop(_:to:)`](/documentation/UIKit/UICollectionViewDropCoordinator/drop(_:to:)-7w5rn) or [`drop(_:toItemAt:)`](/documentation/UIKit/UICollectionViewDropCoordinator/drop(_:toItemAt:)) method to perform the animation.

---

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)