---
title: "textDidChange(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextinputdelegate/textdidchange(_:)"
---

# textDidChange(_:)

Tells the input delegate when text has changed in the document.

## Declaration

```swift
func textDidChange(_ textInput: (any UITextInput)?)
```

## Parameters

- `textInput`: The document instance whose class adopts the UITextInput protocol.

## See Also

### Related Documentation

- [selectionDidChange(_:)](uikit/uitextinputdelegate/selectiondidchange(_:).md)

### Notifying the delegate of textual changes

- [textWillChange(_:)](uikit/uitextinputdelegate/textwillchange(_:).md)
