<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKGameCenterViewController/init(leaderboard:playerScope:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKGameCenterViewController(im)initWithLeaderboard:playerScope:"
  },
  "title" : "init(leaderboard:playerScope:)"
}
-->

# init(leaderboard:playerScope:)

Creates a view controller that presents a leaderboard with data for the specified players.

```
init(leaderboard: GKLeaderboard, playerScope: GKLeaderboard.PlayerScope)
```

## Parameters

`leaderboard`

The identifier for the leaderboard to display.

`playerScope`

The type of players to display in the leaderboard.

## Return Value

The initialized view controller.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)