Instance Property


The score earned by the local player.


var localPlayerScore: GKScore? { get }


This property is invalid until a call to loadScores(completionHandler:) is completed. Afterward, it contains a score object representing the local player’s score on the leaderboard given the filters you applied to the query.

See Also

Retrieving High Scores

var isLoading: Bool

A Boolean value that indicates whether the leaderboard object is retrieving scores.

var title: String?

The localized title for the leaderboard.

var scores: [GKScore]?

An array of GKScore objects that contains the scores returned by the search.

var maxRange: Int

The size of the leaderboard.