<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKLeaderboardScore",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKLeaderboardScore"
  },
  "title" : "GKLeaderboardScore"
}
-->

# GKLeaderboardScore

Information about a player’s score on a leaderboard.

```
class GKLeaderboardScore
```

## Overview

A [`GKLeaderboardScore`](/documentation/GameKit/GKLeaderboardScore) object represents a score on a leaderboard for scores you report for challenges or turn-based games.

When you create a [`GKLeaderboardScore`](/documentation/GameKit/GKLeaderboardScore) object, set the `leaderboardID` property to the associated leaderboard, the `player` property to the player who earns the score, and the `value` property to the score. Make sure the score is compatible with the score format that you configure in App Store Connect.

Then use either the [`report(_:withEligibleChallenges:withCompletionHandler:)`](/documentation/GameKit/GKScore/report(_:withEligibleChallenges:withCompletionHandler:)-2tycl) or [`endMatchInTurn(withMatch:leaderboardScores:achievements:completionHandler:)`](/documentation/GameKit/GKTurnBasedMatch/endMatchInTurn(withMatch:leaderboardScores:achievements:completionHandler:)) `GKTurnBasedMatch` method to report one or more scores.

For details about the score format, see [Configure leaderboards](https://developer.apple.com/help/app-store-connect/configure-game-center/configure-leaderboards) in App Store Connect Help.

## Topics

### Accessing Properties

[`context`](/documentation/GameKit/GKLeaderboardScore/context)

An integer value that your game uses.

[`leaderboardID`](/documentation/GameKit/GKLeaderboardScore/leaderboardID)

The ID that Game Center uses for the leaderboard.

[`player`](/documentation/GameKit/GKLeaderboardScore/player)

The player who earns the score.

[`value`](/documentation/GameKit/GKLeaderboardScore/value)

The score that the player earns.



---

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)