<!--
{
  "availability" : [
    "macOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKLeaderboardViewController/timeScope",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKLeaderboardViewController(py)timeScope"
  },
  "title" : "timeScope"
}
-->

# timeScope

A time filter used to restrict which scores are displayed to the player.

```
var timeScope: GKLeaderboard.TimeScope { get set }
```

## Discussion

This property determines which tab view is displayed to the player. The default value is [`GKLeaderboard.TimeScope.allTime`](/documentation/GameKit/GKLeaderboard/TimeScope-swift.enum/allTime), which shows the best score each player has earned. For more information on time scopes, see [`GKLeaderboard`](/documentation/GameKit/GKLeaderboard).

If the player changes which tab they view, the `timeScope` property is automatically updated. For example, you can read the `timeScope` property after the view controller is dismissed, and set that value the next time you initialize a new leaderboard view controller.

---

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)