<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macOS: -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/BETextSuggestion",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "c:objc(cs)BETextSuggestion"
  },
  "title" : "BETextSuggestion"
}
-->

# BETextSuggestion

A text suggestion to insert into a document.

```
class BETextSuggestion
```

## Overview

Don’t create instances of this class. The system provides instances to your app through a text view’s [`insert(_:)`](/documentation/BrowserEngineKit/BETextInput/insert(_:)-5iryn) method when it suggests text insertions, for example, an AutoFill suggestion.

## Topics

### Creating a text suggestion

[`-  initWithInputText:`](/documentation/BrowserEngineKit/BETextSuggestion/init(inputText:))

Initializes a new text suggestion with the given input text.

### Getting the suggested text

[`inputText`](/documentation/BrowserEngineKit/BETextSuggestion/inputText)

Text that will be inserted into the document when the user chooses the suggestion.

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

### Inherited By

[`BEAutoFillTextSuggestion`](/documentation/BrowserEngineKit/BEAutoFillTextSuggestion)

---

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)