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

# inlinePredictionType

The behavior of inline text predictions for a text-entry area.

```
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`](/documentation/UIKit/UITextInlinePredictionType/default).

If you use a [`UITextView`](/documentation/UIKit/UITextView) or [`UITextField`](/documentation/UIKit/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:

```swift
let textView = UITextView(frame: frame)
textView.inlinePredictionType = .no
```

---

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)