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

# makeIterator()

Returns an iterator over the indexes of this range view.

## Declaration

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