<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GroupActivities",
  "identifier" : "/documentation/GroupActivities/SystemCoordinator/GroupImmersionStyles/Iterator/next()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Group Activities",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:15GroupActivities17SystemCoordinatorC01_aB8_SwiftUIE0A15ImmersionStylesV8IteratorC4next0eF00G5Style_pSgSgyYaF"
  },
  "title" : "next()"
}
-->

# next()

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

```
func next() async -> SystemCoordinator.GroupImmersionStyles.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)