---
title: "leaderboardViewControllerDidFinish(_:)"
framework: gamekit
role: symbol
role_heading: Instance Method
path: "gamekit/gkleaderboardviewcontrollerdelegate/leaderboardviewcontrollerdidfinish(_:)"
---

# leaderboardViewControllerDidFinish(_:)

Called when the leaderboard view is dismissed.

## Declaration

```swift
func leaderboardViewControllerDidFinish(_ viewController: GKLeaderboardViewController!)
```

## Parameters

- `viewController`: The leaderboard view controller that was dismissed by the player.

## Discussion

Discussion Your delegate should dismiss the view controller. If your game paused any gameplay or other activities, it can restart those services in this method.
