---
title: DockAccessory.MotionStates.Iterator
framework: dockkit
role: symbol
role_heading: Structure
path: dockkit/dockaccessory/motionstates-swift.struct/iterator
---

# DockAccessory.MotionStates.Iterator

An object that allows iteration over dock accessory motion states.

## Declaration

```swift
struct Iterator
```

## Topics

### Instance Methods

- [next()](dockkit/dockaccessory/motionstates-swift.struct/iterator/next().md)

## Relationships

### Conforms To

- [AsyncIteratorProtocol](swift/asynciteratorprotocol.md)

## See Also

### Iterating over motion states

- [makeAsyncIterator()](dockkit/dockaccessory/motionstates-swift.struct/makeasynciterator().md)
- [DockAccessory.MotionStates.Element](dockkit/dockaccessory/motionstates-swift.struct/element.md)
