<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextInput/inputDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITextInput(py)inputDelegate"
  },
  "title" : "inputDelegate"
}
-->

# inputDelegate

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

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

## 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`](/documentation/UIKit/UITextInput) protocol to notify the input delegate at the appropriate junctures.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)