<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextViewDelegate/textView(_:insertInputSuggestion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITextViewDelegate(im)textView:insertInputSuggestion:"
  },
  "title" : "textView(_:insertInputSuggestion:)"
}
-->

# textView(_:insertInputSuggestion:)

Tells the delegate when the keyboard delivers an input suggestion.

```
optional func textView(_ textView: UITextView, insertInputSuggestion inputSuggestion: UIInputSuggestion)
```

## Parameters

`textView`

The text view that is currently the first responder.

`inputSuggestion`

The input suggestion that the user or system selected.

---

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)