---
title: matchID
framework: gamekit
role: symbol
role_heading: Instance Property
path: gamekit/gkturnbasedmatch/matchid
---

# matchID

A unique identifier for the turn-based match.

## Declaration

```swift
var matchID: String { get }
```

## Mentioned in

Starting turn-based matches and passing turns between players

## Discussion

Discussion To get the current match object during gameplay, save the match ID and pass it to the load(withID:withCompletionHandler:) method.

## See Also

### Retrieving Match Details

- [creationDate](gamekit/gkturnbasedmatch/creationdate.md)
- [participants](gamekit/gkturnbasedmatch/participants.md)
- [currentParticipant](gamekit/gkturnbasedmatch/currentparticipant.md)
- [status](gamekit/gkturnbasedmatch/status-swift.property.md)
- [GKTurnBasedMatch.Status](gamekit/gkturnbasedmatch/status-swift.enum.md)
- [matchData](gamekit/gkturnbasedmatch/matchdata.md)
- [matchDataMaximumSize](gamekit/gkturnbasedmatch/matchdatamaximumsize.md)
- [loadMatchData(completionHandler:)](gamekit/gkturnbasedmatch/loadmatchdata(completionhandler:).md)
