---
title: playerRange
framework: gamekit
role: symbol
role_heading: Instance Property
path: gamekit/gkgameactivitydefinition/playerrange
---

# playerRange

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

## Declaration

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

## Discussion

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.

## See Also

### Getting the activity capabilities

- [supportsPartyCode](gamekit/gkgameactivitydefinition/supportspartycode.md)
- [supportsUnlimitedPlayers](gamekit/gkgameactivitydefinition/supportsunlimitedplayers.md)
- [playStyle](gamekit/gkgameactivitydefinition/playstyle.md)
- [GKGameActivityPlayStyle](gamekit/gkgameactivityplaystyle.md)
