<!--
{
  "availability" : [
    "iOS: 4.0.0 - 14.0.0",
    "iPadOS: 4.0.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/GKLeaderboard/range",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKLeaderboard(py)range"
  },
  "title" : "range"
}
-->

# range

The numerical score rankings to return from the search.

```
var range: NSRange { get set }
```

## Discussion

GameKit ignores the [`range`](/documentation/GameKit/GKLeaderboard/range) property if the leaderboard request initializes using the [`init(playerIDs:)`](/documentation/GameKit/GKLeaderboard/init(playerIDs:)) method. Otherwise, the [`range`](/documentation/GameKit/GKLeaderboard/range) property filters which scores to return to your game. For example, if you specify a range of `[1,10]`, when the search completes, your game receives the best ten scores. The default range is `[1,25]`.

The minimum index is `1`. The maximum length is `100`.

---

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)