---
title: delegate
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextview/delegate
---

# delegate

The text view’s delegate.

## Declaration

```swift
weak var delegate: (any UITextViewDelegate)? { get set }
```

## Discussion

Discussion A text view delegate responds to editing-related messages from the text view. You can use the delegate to track changes to the text itself and to the current selection. For information about the methods implemented by the delegate, see UITextViewDelegate.

## See Also

### Responding to text view changes

- [UITextViewDelegate](uikit/uitextviewdelegate.md)
