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

# tableView(_:dragSessionDidEnd:)

Signals the end of a drag operation involving content from the specified table view.

```
optional func tableView(_ tableView: UITableView, dragSessionDidEnd session: any UIDragSession)
```

## Parameters

`tableView`

The table view from which the drag operation originated.

`session`

The drag session object providing context for the drag operation.

## Discussion

This method is called after the drag session ended, usually because the content was dropped but possibly because the drag was terminated. Use this method to close out any tasks related to the management of the drag session in your app.

Each call to this method is always preceded by a call to the [`tableView(_:dragSessionWillBegin:)`](/documentation/UIKit/UITableViewDragDelegate/tableView(_:dragSessionWillBegin:)) method.

---

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)