<!--
{
  "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/accessibilityRange(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "c:objc(pl)BEAccessibilityTextMarkerSupport(im)accessibilityRangeForTextMarkerRange:"
  },
  "title" : "accessibilityRange(for:)"
}
-->

# accessibilityRange(for:)

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

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

## Parameters

`range`

A text marker range for text in the element’s string.

## Return Value

The range in the string for the text in `range`, or `(NSNotFound,0)` 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)