---
title: "localPlayerDidComplete(_:)"
framework: gamekit
role: symbol
role_heading: Instance Method
path: "gamekit/gkchallengeeventhandlerdelegate/localplayerdidcomplete(_:)"
---

# localPlayerDidComplete(_:)

Called when the local player completes a challenge.

## Declaration

```swift
optional func localPlayerDidComplete(_ challenge: GKChallenge!)
```

## Parameters

- `challenge`: The completed challenge.

## See Also

### Responding to Challenges Completed By the Local Player

- [shouldShowBanner(forLocallyCompletedChallenge:)](gamekit/gkchallengeeventhandlerdelegate/shouldshowbanner(forlocallycompletedchallenge:).md)
