<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GroupActivities",
  "identifier" : "/documentation/GroupActivities/SystemCoordinator/localParticipantStates",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Group Activities"
    ],
    "preciseIdentifier" : "s:15GroupActivities17SystemCoordinatorC22localParticipantStatesAC0fG0Vvp"
  },
  "title" : "localParticipantStates"
}
-->

# localParticipantStates

An asynchronous sequence that reports changes to the
local participant’s state.

```
final var localParticipantStates: SystemCoordinator.ParticipantStates { get }
```

## Discussion

Use this property to detect when the current person starts or stops
displaying their spatial Persona. The following example shows how to set up
a task to monitor the sequence and respond to changes:

```
Task.detached {
    for await localParticipantState in systemCoordinator.localParticipantStates {
         if localParticipantState.isSpatial {
              // Handle changes to the state.
         }
    }
}
```

---

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)