---
title: runs
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/attributedstringprotocol/runs
---

# runs

The attributed runs of the attributed string, as a view into the underlying string.

## Declaration

```swift
var runs: AttributedString.Runs { get }
```

## Discussion

Discussion Runs begin and end when the attributes for the characters change. Use this property to iterate over the runs with for-in syntax.

## See Also

### Accessing Views into the Attributed String

- [characters](foundation/attributedstringprotocol/characters.md)
- [unicodeScalars](foundation/attributedstringprotocol/unicodescalars.md)
