---
title: "accessibilityBounds(for:)"
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: "browserenginekit/beaccessibilitytextmarkersupport/accessibilitybounds(for:)"
---

# accessibilityBounds(for:)

Calculates the bounding rectangle for a text range.

## Declaration

```swift
func accessibilityBounds(for range: BEAccessibilityTextMarker.Range) -> CGRect
```

## Parameters

- `range`: The text marker range.

## Return Value

Return Value The bounds in accessiblity space of the text range, or CGRectZero if the method can’t calculate the bounds.

## See Also

### Text ranges

- [accessibilityTextMarkerRange()](browserenginekit/beaccessibilitytextmarkersupport/accessibilitytextmarkerrange().md)
- [accessibilityTextMarkerRangeForCurrentSelection()](browserenginekit/beaccessibilitytextmarkersupport/accessibilitytextmarkerrangeforcurrentselection().md)
- [accessibilityTextMarkerRange(for:)](browserenginekit/beaccessibilitytextmarkersupport/accessibilitytextmarkerrange(for:).md)
- [accessibilityRange(for:)](browserenginekit/beaccessibilitytextmarkersupport/accessibilityrange(for:).md)
- [BEAccessibilityTextMarker.Range](browserenginekit/beaccessibilitytextmarker/range.md)
