inlinePredictionType
The behavior of inline text predictions for a text-entry area.
Declaration
optional var inlinePredictionType: UITextInlinePredictionType { get set }Discussion
This property controls whether system-provided text suggestions appear inline during typing. The default value is UITextInlinePredictionType.default.
If you use a UITextView or UITextField, set this property if you want to change the inline text prediction behavior. For example, you might want to turn off inline text predictions if your app provides its own text suggestions.
The following code turns off inline text predictions in a text view:
let textView = UITextView(frame: frame)
textView.inlinePredictionType = .no