---
title: makeIterator()
framework: swiftui
role: symbol
role_heading: Instance Method
path: swiftui/spatialeventcollection/makeiterator()
---

# makeIterator()

Makes an iterator over all events in the collection.

## Declaration

```swift
func makeIterator() -> SpatialEventCollection.Iterator
```

## See Also

### Iterating over events in the collection

- [SpatialEventCollection.Iterator](swiftui/spatialeventcollection/iterator.md)
