<!--
{
  "availability" : [
    "iOS: 7.0.0 - 14.0.0",
    "iPadOS: 7.0.0 - 14.0.0",
    "macCatalyst: 13.1.0 - 14.0.0",
    "macOS: 10.10.0 - 11.0.0",
    "tvOS: 9.0.0 - 14.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 3.0.0 - 7.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKLeaderboardSet/loadLeaderboards(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKLeaderboardSet(im)loadLeaderboardsWithCompletionHandler:"
  },
  "title" : "loadLeaderboards(completionHandler:)"
}
-->

# loadLeaderboards(completionHandler:)

Loads all of the leaderboards for the current leaderboard set.

```
func loadLeaderboards(completionHandler: (@Sendable ([GKLeaderboard]?, (any Error)?) -> Void)? = nil)
```

## Parameters

`completionHandler`

A block that this method calls when it loads the leaderboards.

    The block receives the following parameters:

- *leaderboards*: An array of `GKLeaderboard` objects that provides the leaderboards for your game.
- *error*: Describes an error if it occurs, or `nil` if the operation completes.

## Discussion

---

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)