---
title: range
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/attributedstring/singleattributetransformer/range
---

# range

The range of the attribute in the attributed string.

## Declaration

```swift
var range: Range<AttributedString.Index>
```

## Discussion

Discussion Use this property to examine or alter the range that the attribute applies to.
