Enumeration

GKGameCenterViewControllerState

Possible values for the viewState property.

Declaration

enum GKGameCenterViewControllerState : Int

Topics

Constants

case `default`

Indicates that the view controller should present the default screen.

case leaderboards

Indicates that the view controller presents leaderboard content. The leaderboardCategory and leaderboardTimeScope properties affect the appearance of this view state.

case achievements

Indicates that the view controller presents achievements content.

case challenges

Indicates that the view controller presents challenges content.

See Also

Configuring the Game Center Controller’s Content

var viewState: GKGameCenterViewControllerState

The content displayed by the Game Center controller.

var leaderboardIdentifier: String?

The named leaderboard that is displayed by the view controller.

var leaderboardCategory: String?

The named leaderboard that is displayed by the view controller.

Deprecated
var leaderboardTimeScope: GKLeaderboard.TimeScope

A time filter used to restrict which scores are displayed to the player.