Instance Property

date

The date and time when the score was earned.

Declaration

var date: Date { get }

Discussion

When you initialize the new score object, the date property is automatically set to the current date and time.

See Also

Score Properties

var context: UInt64

An integer value used by your game.

var formattedValue: String?

Returns the player’s score as a localized string.

var leaderboardIdentifier: String

The identifier for the leaderboard.

var player: GKPlayer

The player identifier for the player that earned the score.

var rank: Int

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

var value: Int64

The score earned by the player.