---
title: unicodeScalars
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/attributedsubstring/unicodescalars
---

# unicodeScalars

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

## Declaration

```swift
var unicodeScalars: AttributedString.UnicodeScalarView { get }
```

## See Also

### Accessing Views into the Attributed Substring

- [characters](foundation/attributedsubstring/characters.md)
- [AttributedString.CharacterView](foundation/attributedstring/characterview.md)
- [AttributedString.UnicodeScalarView](foundation/attributedstring/unicodescalarview.md)
- [runs](foundation/attributedsubstring/runs.md)
- [AttributedString.Runs](foundation/attributedstring/runs-swift.struct.md)
