---
title: "textViewDidChange(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextviewdelegate/textviewdidchange(_:)"
---

# textViewDidChange(_:)

Tells the delegate when the user changes the text or attributes in the specified text view.

## Declaration

```swift
optional func textViewDidChange(_ textView: UITextView)
```

## Parameters

- `textView`: The text view containing the changes.

## Discussion

Discussion The text view calls this method in response to user-initiated changes to the text. This method is not called in response to programmatically initiated changes. Implementation of this method is optional.

## See Also

### Responding to text changes

- [textView(_:shouldChangeTextIn:replacementText:)](uikit/uitextviewdelegate/textview(_:shouldchangetextin:replacementtext:).md)
