GKLeaderboardSet
Organizes leaderboards into logical and coherent groups.
Declaration
class GKLeaderboardSetOverview
A GKLeaderboardSet object represents a group of leaderboards that you configure in App Store Connect. For example, if your game has different worlds or levels, you can organize the leaderboards into sets for each world or level. In the Game Center dashboard, players navigate from the leaderboard sets to the individual leaderboards. If you use leaderboard sets, you must have one or more leaderboards and then place each leaderboard in a set, which can be a mix of classic and recurring leaderboards.
To load all the leaderboard sets for your game, use the loadLeaderboardSets(completionHandler:) class method. Then use the title, identifier, and groupIdentifier properties to access the data for each leaderboard set. If you localize the leaderboard set in App Store Connect, the title property localizes. GameKit only sets the groupIdentifier property when your game is in a game group. To load the images you add to App Store Connect for each set, use the loadImage(completionHandler:) method. Then use the loadLeaderboards(handler:) method to get the leaderboards in each set.
To organize leaderboards into sets, see Configure leaderboard sets in App Store Connect Help.
Topics
Accessing Properties
Loading Leaderboard Sets
loadImage(completionHandler:)loadLeaderboardSets(completionHandler:)loadLeaderboards(handler:)loadLeaderboards(completionHandler:)