---
title: playerIDs
framework: gamekit
role: symbol
role_heading: Instance Property
path: gamekit/gkmatch/playerids
---

# playerIDs

The player identifiers for remote players in the match.

## Declaration

```swift
var playerIDs: [String]? { get }
```

## Discussion

Discussion The playerIDs property initially includes the player identifiers for any remote players already connected to the match; the array may initially be empty. As each new player connects to the match, GameKit adds the player’s identifier to the array. GameKit doesn’t include the local player’s identifier in this array.

## See Also

### Related Documentation

- [expectedPlayerCount](gamekit/gkmatch/expectedplayercount.md)

### Deprecated Methods and Properties

- [chooseBestHostPlayer(completionHandler:)](gamekit/gkmatch/choosebesthostplayer(completionhandler:).md)
- [send(_:toPlayers:with:)](gamekit/gkmatch/send(_:toplayers:with:).md)
