<!--
{
  "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/GKLeaderboard/submitScore(_:context:player:leaderboardIDs:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKLeaderboard(cm)submitScore:context:player:leaderboardIDs:completionHandler:"
  },
  "title" : "submitScore(_:context:player:leaderboardIDs:completionHandler:)"
}
-->

# submitScore(_:context:player:leaderboardIDs:completionHandler:)

Submits a score to multiple leaderboards.

```
class func submitScore(_ score: Int, context: Int, player: GKPlayer, leaderboardIDs: [String], completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

## Parameters

`score`

The score that the player earns.

`context`

An integer value that your game uses.

`player`

The player who earns the score.

`leaderboardIDs`

The IDs that Game Center uses for the leaderboards to submit the score to.

`completionHandler`

A block that GameKit calls when this method adds the score.

    The block receives the following parameters:

- 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)