<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GroupActivities",
  "identifier" : "/documentation/GroupActivities/SystemCoordinator/GroupImmersionStyles",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Group Activities",
      "SwiftUI",
      "GroupActivities"
    ],
    "preciseIdentifier" : "s:15GroupActivities17SystemCoordinatorC01_aB8_SwiftUIE0A15ImmersionStylesV"
  },
  "title" : "SystemCoordinator.GroupImmersionStyles"
}
-->

# SystemCoordinator.GroupImmersionStyles

An asynchronous sequence that contains one or more incoming immersion
styles for you to process.

```
struct GroupImmersionStyles
```

## Overview

When a participant in an activity changes the immersion style of their
immersive space, the system adds the style to this sequence. Configure
an asynchronous task to monitor this sequence and process
results when they arrive.

The following example shows you how to configure this task and use it to
iterate over the available items. The `systemCoordinator` variable
contains the session’s <doc://com.apple.documentation/documentation/GroupActivities/SystemCoordinator>
object.

```
Task.detached {
    for await immersionStyle in systemCoordinator.groupImmersionStyle {
        if let immersionStyle {
            // Open an immersive space with the same style.
        }
        else {
            // Dismiss the immersive space.
        }
    }
}
```

## Topics

### Classes

[`class Iterator`](/documentation/GroupActivities/SystemCoordinator/GroupImmersionStyles/Iterator)

### Instance Methods

[`func makeAsyncIterator() -> SystemCoordinator.GroupImmersionStyles.Iterator`](/documentation/GroupActivities/SystemCoordinator/GroupImmersionStyles/makeAsyncIterator())

Creates the asynchronous iterator that produces elements of this
asynchronous sequence.

### Type Aliases

[`typealias Element`](/documentation/GroupActivities/SystemCoordinator/GroupImmersionStyles/Element)

The type of element produced by this asynchronous sequence.

## Relationships

### Conforms To

[`AsyncSequence`](/documentation/Swift/AsyncSequence)

---

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)