Instance Property

shouldSetDefaultLeaderboard

A Boolean value that indicates whether this score should also update the default leaderboard.

Declaration

var shouldSetDefaultLeaderboard: Bool { get set }

Discussion

If the value of this property is true, when the score is reported to Game Center, Game Center also updates the local player’s default leaderboard to match the value stored in the leaderboardIdentifier property of the score object. This matches the behavior of the GKLeaderboard class’s setDefault(_:withCompletionHandler:) class method. If the value of this property is false, the default leaderboard is not changed by reporting the score. The default value of this property is false.