---
title: "dropInteraction(_:sessionDidEnd:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uidropinteractiondelegate/dropinteraction(_:sessiondidend:)"
---

# dropInteraction(_:sessionDidEnd:)

Tells the delegate the drop session has ended.

## Declaration

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

## Parameters

- `interaction`: The interaction that called this method.
- `session`: The drop session that ended.

## Discussion

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

## See Also

### Tracking the drop movements

- [dropInteraction(_:sessionDidEnter:)](uikit/uidropinteractiondelegate/dropinteraction(_:sessiondidenter:).md)
- [dropInteraction(_:sessionDidUpdate:)](uikit/uidropinteractiondelegate/dropinteraction(_:sessiondidupdate:).md)
- [dropInteraction(_:sessionDidExit:)](uikit/uidropinteractiondelegate/dropinteraction(_:sessiondidexit:).md)
