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

# loadMatches(completionHandler:)

Fetches the turn-based matches from Game Center that the local player participates in.

```
class func loadMatches(completionHandler: (@Sendable ([GKTurnBasedMatch]?, (any Error)?) -> Void)? = nil)
```

## Parameters

`completionHandler`

The block that GameKit calls when it completes the request.

    The block receives the following parameters:

- *matches*: The local player’s matches, or `nil` if there are none. If an error occurs, this parameter may be non-`nil`, containing a subset of the matches that GameKit loads before the error occurs.
- *error*: Describes an error if it occurs, or `nil` if the operation completes.

## Discussion

The [`matchData`](/documentation/GameKit/GKTurnBasedMatch/matchData) properties of the match objects are `nil` until you fetch the data from Game Center using the [`loadMatchData(completionHandler:)`](/documentation/GameKit/GKTurnBasedMatch/loadMatchData(completionHandler:)) 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)