---
title: UTF8View
framework: swift
role: symbol
role_heading: Associated Type
path: swift/stringprotocol/utf8view
---

# UTF8View

## Declaration

```swift
associatedtype UTF8View : Collection where Self.UTF8View.Element == UInt8, Self.UTF8View.Index == String.Index
```
