<!--
{
  "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",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKGameCenterViewController/leaderboardTimeScope",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKGameCenterViewController(py)leaderboardTimeScope"
  },
  "title" : "leaderboardTimeScope"
}
-->

# leaderboardTimeScope

A time filter that restricts the scores to display to the player.

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

## Discussion

This property determines which tab view of the scores screen 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).

When the leaderboard is presented, the value of this property determines the initial tab that is displayed to the player. As the player changes which tab they view, the [`leaderboardTimeScope`](/documentation/GameKit/GKGameCenterViewController/leaderboardTimeScope) property is automatically updated. For example, to preserve the player’s selections, you can read the [`leaderboardTimeScope`](/documentation/GameKit/GKGameCenterViewController/leaderboardTimeScope) property after the screen is dismissed, and set that value the next time you initialize the 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)