How do you show a global Game Center leaderboard? Using a playerScope of .global doesn't work.

In particular, it shows the friends leaderboard. You could of course switch to the global leaderboard manually but I want the global leaderboard to appear initially.

This is the constructor that I tried that fails:

GKGameCenterViewController(leaderboardID: ..., playerScope: .global, timeScope: .allTime)

Is it possible to show the global leaderboard initially?

constructor that I tried that fails

What error message do you get ?

Could you show the code where you call this ?

Did you authenticate as required ?

Important Your application must authenticate a local player before you can use any Game Center classes. If there is no authenticated player, your application receives a GKError.Code.notAuthenticated error. For more information on authentication, see Game Center Programming Guide.

How do you show a global Game Center leaderboard? Using a playerScope of .global doesn't work.
 
 
Q