---
title: Data.Iterator
framework: foundation
role: symbol
role_heading: Structure
path: foundation/data/iterator
---

# Data.Iterator

An iterator that operates over the contents of data.

## Declaration

```swift
struct Iterator
```

## Relationships

### Conforms To

- [IteratorProtocol](swift/iteratorprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Iterating Over Bytes

- [makeIterator()](foundation/data/makeiterator().md)
- [enumerateBytes(_:)](foundation/data/enumeratebytes(_:).md)
