<!--
{
  "availability" : [
    "iOS: 7.0.0 - 26.0.0",
    "iPadOS: 7.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.10.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKChallengeListener/player(_:issuedChallengeWasCompleted:byFriend:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(pl)GKChallengeListener(im)player:issuedChallengeWasCompleted:byFriend:"
  },
  "title" : "player(_:issuedChallengeWasCompleted:byFriend:)"
}
-->

# player(_:issuedChallengeWasCompleted:byFriend:)

Handles when a friend completes a challenge that the local player issues.

```
optional func player(_ player: GKPlayer, issuedChallengeWasCompleted challenge: GKChallenge, byFriend friendPlayer: GKPlayer)
```

## Parameters

`player`

The player who issues the challenge.

`challenge`

The challenge that the friend completes.

`friendPlayer`

The player who completes the challenge.

---

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)