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

# player(_:wantsToQuitMatch:)

Handles when the current participant wants to quit a match.

```
optional func player(_ player: GKPlayer, wantsToQuitMatch match: GKTurnBasedMatch)
```

## Parameters

`player`

The player who receives this turn-based event.

`match`

The match that the current participant wants to quit.

## Discussion

Implement this method to forfeit the match by passing the turn to the next participant using the  [`participantQuitInTurn(with:nextParticipants:turnTimeout:match:completionHandler:)`](/documentation/GameKit/GKTurnBasedMatch/participantQuitInTurn(with:nextParticipants:turnTimeout:match:completionHandler:)) method.

---

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)