---
title: next()
framework: groupactivities
role: symbol
role_heading: Instance Method
path: groupactivities/systemcoordinator/groupimmersionstyles/iterator/next()
---

# next()

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

## Declaration

```swift
func next() async -> SystemCoordinator.GroupImmersionStyles.Element?
```

## Return Value

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