Instance Property


The player identifier for the player that earned the score.


var player: GKPlayer { get }


When you initialize a new score object, the player property is set to the identifier for the local player. If the score object was returned to your game by loading scores from Game Center, the player property identifies the player who recorded that score.

See Also

Score Properties

var context: UInt64

An integer value used by your game.

var date: Date

The date and time when the score was earned.

var formattedValue: String?

Returns the player’s score as a localized string.

var leaderboardIdentifier: String

The identifier for the leaderboard.

var rank: Int

The position of the score in the results of a leaderboard search.

var value: Int64

The score earned by the player.