<!--
{
  "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(_:dropSessionDidUpdate:withDestinationIndexPath:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UICollectionViewDropDelegate(im)collectionView:dropSessionDidUpdate:withDestinationIndexPath:"
  },
  "title" : "collectionView(_:dropSessionDidUpdate:withDestinationIndexPath:)"
}
-->

# collectionView(_:dropSessionDidUpdate:withDestinationIndexPath:)

Tells your delegate that the position of the dragged data over the collection view changed.

```
optional func collectionView(_ collectionView: UICollectionView, dropSessionDidUpdate session: any UIDropSession, withDestinationIndexPath destinationIndexPath: IndexPath?) -> UICollectionViewDropProposal
```

## Parameters

`collectionView`

The collection view that’s tracking the dragged content.

`session`

The drop session object containing information about the type of data being dragged.

`destinationIndexPath`

The index path at which the content would be dropped.

## Return Value

Your proposal for how to handle the content if it is dropped at the specified location.

## Discussion

While the user is dragging content, the collection view calls this method repeatedly to determine how you would handle the drop if it occurred at the specified location. The collection view provides visual feedback to the user based on your proposal.

In your implementation of this method, create a [`UICollectionViewDropProposal`](/documentation/UIKit/UICollectionViewDropProposal) object and use it to convey your intentions. Because this method is called repeatedly while the user drags over the table view, your implementation should return as quickly as possible.

---

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)