---
title: runs
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/attributedstring/runs-swift.property
---

# 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/attributedstring/characters.md)
- [AttributedString.CharacterView](foundation/attributedstring/characterview.md)
- [unicodeScalars](foundation/attributedstring/unicodescalars.md)
- [AttributedString.UnicodeScalarView](foundation/attributedstring/unicodescalarview.md)
- [AttributedString.Runs](foundation/attributedstring/runs-swift.struct.md)
