A time filter used to restrict which scores are displayed to the player.
- iOS 4.1+
- macOS 10.8+
- Mac Catalyst 13.0+
This property determines which tab view of the scores screen is displayed to the player. The default value is
GKLeaderboard, which shows the best score each player has earned. For more information on time scopes, see
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
leaderboard property is automatically updated. For example, to preserve the player’s selections, you can read the
leaderboard property after the screen is dismissed, and set that value the next time you initialize the view controller.