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

# tableView(_:dropSessionDidExit:)

Notifies the delegate when dragged content exits the table view’s bounds rectangle.

## Declaration

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

## Parameters

- `tableView`: The collection view that was tracking the dragged content.
- `session`: The drop session object containing information about the data being dragged.

## Discussion

Discussion The table view calls this method when dragged content exits its bounds rectangle. This method isn’t called again until the dragged content enters the table view’s bounds (triggering a call to the tableView(_:dropSessionDidEnter:) method) and exits again. Use this method to clean up any state information that you configured in your tableView(_:dropSessionDidEnter:) method.

## See Also

### Tracking the drag movements

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