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

# dropInteraction(_:sessionDidEnd:)

Tells the delegate the drop session has ended.

```
optional func dropInteraction(_ interaction: UIDropInteraction, sessionDidEnd session: any UIDropSession)
```

## Parameters

`interaction`

The interaction that called this method.

`session`

The drop session that ended.

## Discussion

Implement this method if you need to clean up resources you created during the session.

---

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)