---
title: expectedPlayerCount
framework: gamekit
role: symbol
role_heading: Instance Property
path: gamekit/gkmatch/expectedplayercount
---

# expectedPlayerCount

The remaining number of players invited but not yet connected to the match.

## Declaration

```swift
var expectedPlayerCount: Int { get }
```

## Mentioned in

Exchanging data between players in real-time games

## Discussion

Discussion GameKit decrements the value of this property when a player connects to the match. When the value reaches 0, all expected players joined, and the game can begin.

## See Also

### Working with other players

- [players](gamekit/gkmatch/players.md)
