---
title: Set.Iterator
framework: swift
role: symbol
role_heading: Structure
path: swift/set/iterator
---

# Set.Iterator

An iterator over the members of a Set<Element>.

## Declaration

```swift
@frozen struct Iterator
```

## Topics

### Default Implementations

- [CustomReflectable Implementations](swift/set/iterator/customreflectable-implementations.md)
- [IteratorProtocol Implementations](swift/set/iterator/iteratorprotocol-implementations.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomReflectable](swift/customreflectable.md)
- [Escapable](swift/escapable.md)
- [IteratorProtocol](swift/iteratorprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Supporting Types

- [Set.Index](swift/set/index.md)
