<!--
{
  "availability" : [
    "iOS: 16.2.0 -",
    "iPadOS: 16.2.0 -",
    "macCatalyst: 16.2.0 -",
    "macOS: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKMatchmaker/stopGroupActivity()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKMatchmaker(im)stopGroupActivity"
  },
  "title" : "stopGroupActivity()"
}
-->

# stopGroupActivity()

Ends a SharePlay activity for the entire group, which the local player activates.

```
func stopGroupActivity()
```

## Discussion

Use this method to stop showing a group activity in SharePlay that players use to join a match. This method doesn’t quit the match in your game that players previously join using SharePlay. Players can also stop a group activity using the SharePlay interface.

To start showing a group activity in SharePlay, present a [`GKMatchmakerViewController`](/documentation/GameKit/GKMatchmakerViewController) object where the player can select SharePlay to invite players, or call the [`startGroupActivity(playerHandler:)`](/documentation/GameKit/GKMatchmaker/startGroupActivity(playerHandler:)) method.

---

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)