# How to handle player swiping left to remove game in Game Center

**URL:** <https://forums.kodeco.com/t/how-to-handle-player-swiping-left-to-remove-game-in-game-center/8919>\
**Category:** iOS\
**Created:** [March 9, 2016, 6:52pm UTC](https://forums.kodeco.com/t/how-to-handle-player-swiping-left-to-remove-game-in-game-center/8919 "2016-03-09T18:52:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![asr123](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/asr123/32/11397_2.png) [@asr123](https://forums.kodeco.com/u/asr123)\
**Post date:** [March 9, 2016, 6:52pm UTC](https://forums.kodeco.com/t/how-to-handle-player-swiping-left-to-remove-game-in-game-center/8919/1 "2016-03-09T18:52:33Z")

</div>

I know this function is being called when the current player resigns from a game:

```
func turnBasedMatchmakerViewController(viewController: GKTurnBasedMatchmakerViewController, playerQuitForMatch match: GKTurnBasedMatch) {  
        print("playerquitformatch, \(match), \(match.currentParticipant)")  
  
        for part in match.participants! {  
            (part ).matchOutcome = .Quit  
        }  
        match.endMatchInTurnWithMatchData(match.matchData!, completionHandler: nil)  
    }  

```

What function is being called when a player swipe to left and remove the game? which most likely all Game Center players do instead of respectfully resigning

---

<div class="post-metadata">

**Author:** ![marciokoko](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/marciokoko/32/32922_2.png) [@marciokoko](https://forums.kodeco.com/u/marciokoko)\
**Post date:** [March 10, 2016, 2:44pm UTC](https://forums.kodeco.com/t/how-to-handle-player-swiping-left-to-remove-game-in-game-center/8919/2 "2016-03-10T14:44:11Z")

</div>

What tutorial book is this from?

---

<div class="post-metadata">

**Author:** ![asr123](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/asr123/32/11397_2.png) [@asr123](https://forums.kodeco.com/u/asr123)\
**Post date:** [March 10, 2016, 2:48pm UTC](https://forums.kodeco.com/t/how-to-handle-player-swiping-left-to-remove-game-in-game-center/8919/3 "2016-03-10T14:48:36Z")

</div>

This is from no book

---

<div class="post-metadata">

**Author:** ![marciokoko](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/marciokoko/32/32922_2.png) [@marciokoko](https://forums.kodeco.com/u/marciokoko)\
**Post date:** [March 10, 2016, 2:58pm UTC](https://forums.kodeco.com/t/how-to-handle-player-swiping-left-to-remove-game-in-game-center/8919/4 "2016-03-10T14:58:42Z")

</div>

Well its a GKTurnBasedMatchMakerVC so it has a delegate protocol to follow which alerts when a match ends. In this case its sending .Quit option.
