<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKTurnBasedMatch/matchData",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKTurnBasedMatch(py)matchData"
  },
  "title" : "matchData"
}
-->

# matchData

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

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

## 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:)`](/documentation/GameKit/GKTurnBasedMatch/loadMatchData(completionHandler:)) method.

## See Also

[`endTurn(withNextParticipant:match:completionHandler:)`](/documentation/GameKit/GKTurnBasedMatch/endTurn(withNextParticipant:match:completionHandler:))

Updates the data stored on Game Center for the current match.

[`saveCurrentTurn(withMatch:completionHandler:)`](/documentation/GameKit/GKTurnBasedMatch/saveCurrentTurn(withMatch:completionHandler:))

Saves your match data in Game Center without ending the turn.

[`participantQuitInTurn(with:nextParticipant:match:completionHandler:)`](/documentation/GameKit/GKTurnBasedMatch/participantQuitInTurn(with:nextParticipant:match:completionHandler:))

Resigns the current player from the match without ending the match.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)