---
title: String.UTF16View.Iterator
framework: swift
role: symbol
role_heading: Structure
path: swift/string/utf16view/iterator
---

# String.UTF16View.Iterator

A type that provides the collection’s iteration interface and encapsulates its iteration state.

## Declaration

```swift
@frozen struct Iterator
```

## Overview

Overview By default, a collection conforms to the Sequence protocol by supplying IndexingIterator as its associated Iterator type.

## Topics

### Instance Methods

- [next()](swift/string/utf16view/iterator/next().md)

### Type Aliases

- [String.UTF16View.Iterator.Element](swift/string/utf16view/iterator/element.md)

## Relationships

### Conforms To

- [IteratorProtocol](swift/iteratorprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
