---
title: next()
framework: avfoundation
role: symbol
role_heading: Instance Method
path: avfoundation/avassetimagegenerator/images/next()
---

# next()

Returns the next element in the sequence.

## Declaration

```swift
mutating func next() async -> AVAssetImageGenerator.Images.Element?
```

## Return Value

Return Value The next element, or nil if no more exist.

## See Also

### Iterating elements

- [AVAssetImageGenerator.Images.Element](avfoundation/avassetimagegenerator/images/element.md)
