---
title: AttributedString.UTF16View
framework: foundation
role: symbol
role_heading: Structure
path: foundation/attributedstring/utf16view
---

# AttributedString.UTF16View

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

## Declaration

```swift
struct UTF16View
```

## Topics

### Type Aliases

- [AttributedString.UTF16View.Subsequence](foundation/attributedstring/utf16view/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)
