Instance Property

rank

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

Declaration

var rank: Int { get }

Discussion

The value of this property is only valid on score objects returned from Game Center. The rank property represents the position of the score in the returned results, with 1 being the best score, 2 being the second best, and so on.

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 player: GKPlayer

The player identifier for the player that earned the score.

var value: Int64

The score earned by the player.