<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DockKit",
  "identifier" : "/documentation/DockKit/DockAccessory/TrackingStates-swift.struct/Iterator",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "DockKit"
    ],
    "preciseIdentifier" : "s:7DockKit0A9AccessoryC14TrackingStatesV8IteratorV"
  },
  "title" : "DockAccessory.TrackingStates.Iterator"
}
-->

# DockAccessory.TrackingStates.Iterator

An object that allows iteration over tracking states.

```
struct Iterator
```

## Topics

### Instance Methods

[`func next() async -> DockAccessory.TrackingState?`](/documentation/DockKit/DockAccessory/TrackingStates-swift.struct/Iterator/next())

Provide the next tracking session state in the list.

## Relationships

### Conforms To

[`AsyncIteratorProtocol`](/documentation/Swift/AsyncIteratorProtocol)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)