<!--
{
  "availability" : [
    "iOS: 18.2.0 -",
    "iPadOS: 18.2.0 -",
    "macOS: -",
    "tvOS: 18.2.0 -",
    "visionOS: 2.2.0 -",
    "watchOS: 11.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/BEAccessibilityTextMarkerSupport/accessibilityTextMarkerRange(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "c:objc(pl)BEAccessibilityTextMarkerSupport(im)accessibilityTextMarkerRangeForRange:"
  },
  "title" : "accessibilityTextMarkerRange(for:)"
}
-->

# accessibilityTextMarkerRange(for:)

Returns the text marker range for the text in a given range.

```
func accessibilityTextMarkerRange(for range: NSRange) -> BEAccessibilityTextMarker.Range?
```

## Parameters

`range`

A range of text in the element’s string.

## Return Value

The text marker range for the text in `range`, or `nil` if the method can’t calculate the range.

---

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)