---
title: makeIterator()
framework: swift
role: symbol
role_heading: Instance Method
path: swift/string/utf16view/makeiterator()
---

# makeIterator()

Returns an iterator over the elements of the collection.

## Declaration

```swift
func makeIterator() -> String.UTF16View.Iterator
```
