<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKAccessPoint/trigger(leaderboardID:playerScope:timeScope:handler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKAccessPoint(im)triggerAccessPointWithLeaderboardID:playerScope:timeScope:handler:"
  },
  "title" : "trigger(leaderboardID:playerScope:timeScope:handler:)"
}
-->

# trigger(leaderboardID:playerScope:timeScope:handler:)

Displays the Game Center dashboard in a state that shows a specific leaderboard.

```
func trigger(leaderboardID: String, playerScope: GKLeaderboard.PlayerScope, timeScope: GKLeaderboard.TimeScope, handler: (() -> Void)? = nil)
```

## Parameters

`leaderboardID`

The identifier for the leaderboard.

`playerScope`

The type of players for scoping the leaderboard data.

`timeScope`

The time period for filtering the leaderboard data.

`handler`

The block that GameKit calls after it displays the dashboard.

---

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)