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

# loadDefaultLeaderboardIdentifier(completionHandler:)

Loads the identifier for the local player’s default leaderboard.

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

## Parameters

`completionHandler`

The block that GameKit calls when it completes the request.

    The block receives the following parameters:

- categoryID: The leaderboard ID for the local player’s default leaderboard that you set in App Store Connect.
- 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)