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

# collectionView(_:dropSessionDidExit:)

Notifies you when dragged content exits the collection view’s bounds rectangle.

```
optional func collectionView(_ collectionView: UICollectionView, dropSessionDidExit session: any UIDropSession)
```

## Parameters

`collectionView`

The collection view that was tracking the dragged content.

`session`

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

## Discussion

UIKit calls this method when dragged content exits the bounds rectangle of the specified collection view. The method isn’t called again until the dragged content enters the collection view’s bounds (triggering a call to the [`collectionView(_:dropSessionDidEnter:)`](/documentation/UIKit/UICollectionViewDropDelegate/collectionView(_:dropSessionDidEnter:)) method) and exits again.

Use this method to clean up any state information that you configured in your [`collectionView(_:dropSessionDidEnter:)`](/documentation/UIKit/UICollectionViewDropDelegate/collectionView(_:dropSessionDidEnter:)) method.

---

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)