---
title: next()
framework: activitykit
role: symbol
role_heading: Instance Method
path: activitykit/activityauthorizationinfo/activityenablementupdates-swift.struct/iterator/next()
---

# next()

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

## Declaration

```swift
mutating func next() async -> Bool?
```
