---
title: defaultNumberOfPlayers
framework: gamekit
role: symbol
role_heading: Instance Property
path: gamekit/gkmatchrequest/defaultnumberofplayers
---

# defaultNumberOfPlayers

The default number of players for the match.

## Declaration

```swift
var defaultNumberOfPlayers: Int { get set }
```

## Discussion

Discussion GameKit uses the default number of players to present the available slots in the matchmaking user interface. The player can choose to override this to add or remove slots. If you don’t set this property, GameKit uses the value of the maxPlayers property as the default number of players.

## See Also

### Restricting the number of players

- [maxPlayersAllowedForMatch(of:)](gamekit/gkmatchrequest/maxplayersallowedformatch(of:).md)
- [GKMatchType](gamekit/gkmatchtype.md)
- [minPlayers](gamekit/gkmatchrequest/minplayers.md)
- [maxPlayers](gamekit/gkmatchrequest/maxplayers.md)
