---
title: range
framework: gamekit
role: symbol
role_heading: Instance Property
path: gamekit/gkleaderboard/range
---

# range

The numerical score rankings to return from the search.

## Declaration

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

## Discussion

Discussion GameKit ignores the range property if the leaderboard request initializes using the init(playerIDs:) method. Otherwise, the 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.

## See Also

### Deprecated properties

- [category](gamekit/gkleaderboard/category.md)
- [identifier](gamekit/gkleaderboard/identifier.md)
- [isLoading](gamekit/gkleaderboard/isloading.md)
- [localPlayerScore](gamekit/gkleaderboard/localplayerscore.md)
- [maxRange](gamekit/gkleaderboard/maxrange.md)
- [playerScope](gamekit/gkleaderboard/playerscope-swift.property.md)
- [scores](gamekit/gkleaderboard/scores.md)
- [timeScope](gamekit/gkleaderboard/timescope-swift.property.md)
