<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GroupActivities",
  "identifier" : "/documentation/GroupActivities/GroupSession/State-swift.enum/invalidated(reason:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Group Activities"
    ],
    "preciseIdentifier" : "s:15GroupActivities0A7SessionC5StateO11invalidatedyAEyx_Gs5Error_p_tcAGmAA0A8ActivityRzlF"
  },
  "title" : "GroupSession.State.invalidated(reason:)"
}
-->

# GroupSession.State.invalidated(reason:)

A state that indicates the session is no longer valid and can’t be used
for shared activities.

```
case invalidated(reason: any Error)
```

## Discussion

The session transitions to this state when an error occurs, when the FaceTime
call ends, or when your app calls the [`leave()`](/documentation/GroupActivities/GroupSession/leave()) method. When
a session is in this state, don’t attempt to join, leave, or end the session again.
Instead, release resources related to the session, including the session object itself.

---

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)