---
title: "textField(_:insertInputSuggestion:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextfielddelegate/textfield(_:insertinputsuggestion:)"
---

# textField(_:insertInputSuggestion:)

Tells the delegate when the keyboard delivers an input suggestion.

## Declaration

```swift
optional func textField(_ textField: UITextField, insertInputSuggestion inputSuggestion: UIInputSuggestion)
```

## Parameters

- `textField`: The text field that is currently the first responder.
- `inputSuggestion`: The input suggestion that the user or system selected.

## Mentioned in

Adopting Smart Reply in your messaging or email app
