---
title: "textDraggableView(_:dragSessionWillBegin:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextdragdelegate/textdraggableview(_:dragsessionwillbegin:)"
---

# textDraggableView(_:dragSessionWillBegin:)

Tells the delegate that the text has been lifted out of the text view and the user is beginning to drag the text.

## Declaration

```swift
optional func textDraggableView(_ textDraggableView: any UIView & UITextDraggable, dragSessionWillBegin session: any UIDragSession)
```

## Parameters

- `textDraggableView`: The text view where the drag activity was started.
- `session`: The drag session of the current drag activity.

## See Also

### Handling drag session notifications

- [textDraggableView(_:dragSessionDidEnd:with:)](uikit/uitextdragdelegate/textdraggableview(_:dragsessiondidend:with:).md)
