<!--
{
  "availability" : [
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/CameraFrameProvider/CameraFrameUpdates/Iterator/next()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "s:5ARKit19CameraFrameProviderC0bC7UpdatesV8IteratorV4nextAA0bC0VSgyYaF"
  },
  "title" : "next()"
}
-->

# next()

Asynchronously advances to the next element and returns it, or ends the sequence if there’s no next element.

```
mutating func next() async -> CameraFrameProvider.CameraFrameUpdates.Element?
```

## Return Value

The next element, if it exists, or nil to signal the end of the sequence.

---

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)