---
title: AttributedString.UTF8View
framework: foundation
role: symbol
role_heading: Structure
path: foundation/attributedstring/utf8view
---

# AttributedString.UTF8View

A view of an attributed string’s contents as a collection of UTF-8 code units.

## Declaration

```swift
struct UTF8View
```

## Topics

### Type Aliases

- [AttributedString.UTF8View.Subsequence](foundation/attributedstring/utf8view/subsequence.md)

## Relationships

### Conforms To

- [BidirectionalCollection](swift/bidirectionalcollection.md)
- [Collection](swift/collection.md)
- [Copyable](swift/copyable.md)
- [Escapable](swift/escapable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [Sequence](swift/sequence.md)
