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

# collectionView(_:dropSessionDidEnter:)

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

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

## 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.

## Discussion

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

Use this method to perform any one-time setup associated with tracking dragged content over the collection view.

---

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)