<!--
{
  "availability" : [
    "iOS: 4.1.0 - 14.0.0",
    "iPadOS: 4.1.0 - 14.0.0",
    "macCatalyst: 13.1.0 - 14.0.0",
    "macOS: 10.8.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/GKScore/rank",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKScore(py)rank"
  },
  "title" : "rank"
}
-->

# rank

The position of the score in the results of a leaderboard search.

```
var rank: Int { get }
```

## Discussion

The value of this property is only valid on score objects returned from Game Center. The `rank` property represents the position of the score in the returned results, with `1` being the best score, `2` being the second best, and so on.

---

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)