---
title: makeIterator()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/indexset/makeiterator()
---

# makeIterator()

Returns an iterator over the elements of this sequence.

## Declaration

```swift
func makeIterator() -> IndexingIterator<IndexSet>
```
