---
title: accessibilityTextMarkerRangeForCurrentSelection()
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: browserenginekit/beaccessibilitytextmarkersupport/accessibilitytextmarkerrangeforcurrentselection()
---

# accessibilityTextMarkerRangeForCurrentSelection()

The text marker range of the current selection.

## Declaration

```swift
func accessibilityTextMarkerRangeForCurrentSelection() -> BEAccessibilityTextMarker.Range?
```

## Discussion

Discussion If there’s no text selected in the element, return nil.

## See Also

### Text ranges

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