<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/BETextInput/markedTextRange",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "c:objc(pl)BETextInput(py)markedTextRange"
  },
  "title" : "markedTextRange"
}
-->

# markedTextRange

A range that represents the position of the marked text.

```
var markedTextRange: UITextRange? { get }
```

## Discussion

Return `nil` if no marked text exists.

Marked text represents provisionally inserted text that a person needs to confirm before you commit it to the document. You display marked text with a distinct visual look. The selection needs to reside in market text, if any exists.

When you commit marked text to the document, replace any existing marked text. If no marked text is present, insert the market text into the document at the location of the current selection.

---

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)