player(_:matchEnded:)
Handles when the match ends.
Declaration
optional func player(_ player: GKPlayer, matchEnded match: GKTurnBasedMatch)Parameters
- player:
The player who receives this turn-based event.
- match:
The match that ends.
Mentioned in
Discussion
Implement this method to stop gameplay, notify the player that the match is over, and show the participant outcomes.