<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKGameActivityDefinition/playerRange",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "s:So24GKGameActivityDefinitionC7GameKitE11playerRangeSX_pSgvp"
  },
  "title" : "playerRange"
}
-->

# playerRange

The range of players supported by this type of game activity.

```
final var playerRange: (any RangeExpression)? { get }
```

## Discussion

This can be nil if neither of minPlayers or maxPlayers are set by the developer, a closed range if both are set,
or an open range suggesting this game activity supports an unlimited number of players.

---

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)