---
title: inputDelegate
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextinput/inputdelegate
---

# inputDelegate

An input delegate that receives a notification when text changes or when the selection changes.

## Declaration

```swift
weak var inputDelegate: (any UITextInputDelegate)? { get set }
```

## Discussion

Discussion The text input system automatically assigns a delegate to this property at runtime. It is the responsibility of the view that adopts the UITextInput protocol to notify the input delegate at the appropriate junctures.

## See Also

### Handling text input

- [UITextInputDelegate](uikit/uitextinputdelegate.md)
