A single user interface used to display achievements and leaderboards supported by Game Center.
Mac Catalyst 13.0+Beta
To display the Game Center screen, initialize a new GKGameCenterViewController object and set its delegate. Optionally, you can choose to configure the view controller further to specify which content is initially displayed. Then present the view controller. Your delegate is called when the user dismisses the screen. Listing 1 shows how to present a new GKGameCenterViewController and display the scores for a specific leaderboard.
Your game should pause other activities before presenting the Game Center user interface.
Configuring the Game Center View Controller’s Delegate
The abstract base protocol adopted by Game Center view controller classes.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.