---
title: "tableView(_:dropSessionDidEnd:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitableviewdropdelegate/tableview(_:dropsessiondidend:)"
---

# tableView(_:dropSessionDidEnd:)

Notifies the delegate when the drag operation ends.

## Declaration

```swift
optional func tableView(_ tableView: UITableView, dropSessionDidEnd session: any UIDropSession)
```

## Parameters

- `tableView`: The table view that is no longer the target of the drop.
- `session`: The drop session object containing information about the data being dragged.

## Discussion

Discussion The table view calls this method at the conclusion of a drag that was over the table view at one point. Use it to clean up any state information that you used to handle the drag. This method is called regardless of whether the data was actually dropped onto the table view.

## See Also

### Tracking the drag movements

- [tableView(_:dropSessionDidUpdate:withDestinationIndexPath:)](uikit/uitableviewdropdelegate/tableview(_:dropsessiondidupdate:withdestinationindexpath:).md)
- [tableView(_:dropSessionDidEnter:)](uikit/uitableviewdropdelegate/tableview(_:dropsessiondidenter:).md)
- [tableView(_:dropSessionDidExit:)](uikit/uitableviewdropdelegate/tableview(_:dropsessiondidexit:).md)
