---
title: "textDraggableView(_:dragSessionDidEnd:with:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextdragdelegate/textdraggableview(_:dragsessiondidend:with:)"
---

# textDraggableView(_:dragSessionDidEnd:with:)

Tells the delegate that the drag session has ended.

## Declaration

```swift
optional func textDraggableView(_ textDraggableView: any UIView & UITextDraggable, dragSessionDidEnd session: any UIDragSession, with operation: UIDropOperation)
```

## Parameters

- `textDraggableView`: The text view where the drag activity was started.
- `session`: The drag session of the current drag activity.
- `operation`: The operation that occurred during the drop activity.

## See Also

### Handling drag session notifications

- [textDraggableView(_:dragSessionWillBegin:)](uikit/uitextdragdelegate/textdraggableview(_:dragsessionwillbegin:).md)
