---
title: next()
framework: arkit
role: symbol
role_heading: Instance Method
path: arkit/cameraframeprovider/cameraframeupdates/iterator/next()
---

# next()

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

## Declaration

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

## Return Value

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