---
title: matchData
framework: gamekit
role: symbol
role_heading: Instance Property
path: gamekit/gkturnbasedmatch/matchdata
---

# matchData

The game-specific data that you store in Game Center and pass between participants through a match object.

## Declaration

```swift
var matchData: Data? { get }
```

## Mentioned in

Starting turn-based matches and passing turns between players

## Discussion

Discussion Use this property to get the game-specific data that you store in Game Center when ending a turn, saving a turn, or leaving a match. This property is nil until you fetch the data from Game Center using the loadMatchData(completionHandler:) method.

## See Also

### Related Documentation

- [endTurn(withNextParticipant:match:completionHandler:)](gamekit/gkturnbasedmatch/endturn(withnextparticipant:match:completionhandler:).md)
- [saveCurrentTurn(withMatch:completionHandler:)](gamekit/gkturnbasedmatch/savecurrentturn(withmatch:completionhandler:).md)
- [participantQuitInTurn(with:nextParticipant:match:completionHandler:)](gamekit/gkturnbasedmatch/participantquitinturn(with:nextparticipant:match:completionhandler:).md)

### Retrieving Match Details

- [matchID](gamekit/gkturnbasedmatch/matchid.md)
- [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)
- [matchDataMaximumSize](gamekit/gkturnbasedmatch/matchdatamaximumsize.md)
- [loadMatchData(completionHandler:)](gamekit/gkturnbasedmatch/loadmatchdata(completionhandler:).md)
