<!--
{
  "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/loadMatchData(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKTurnBasedMatch(im)loadMatchDataWithCompletionHandler:"
  },
  "title" : "loadMatchData(completionHandler:)"
}
-->

# loadMatchData(completionHandler:)

Fetches your game-specific data that you store in Game Center when ending a turn, saving a turn, or leaving a match.

```
func loadMatchData(completionHandler: (@Sendable (Data?, (any Error)?) -> Void)? = nil)
```

## Parameters

`completionHandler`

The block that GameKit calls when it completes the request.

    The block receives the following parameters:

- *matchData*: The match data you pass to `GKTurnBasedMatch` methods that GameKit stores in Game Center, or `nil` if an error occurs.
- *error*: Describes an error if it occurs, or `nil` if the operation completes.

## Discussion

The [`matchData`](/documentation/GameKit/GKTurnBasedMatch/matchData) property is `nil` until you fetch the data from Game Center using this method.

---

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)