---
title: "turnBasedMatchmakerViewControllerWasCancelled(_:)"
framework: gamekit
role: symbol
role_heading: Instance Method
path: "gamekit/gkturnbasedmatchmakerviewcontrollerdelegate/turnbasedmatchmakerviewcontrollerwascancelled(_:)"
---

# turnBasedMatchmakerViewControllerWasCancelled(_:)

Handles when the player dismisses the view controller without inviting players.

## Declaration

```swift
func turnBasedMatchmakerViewControllerWasCancelled(_ viewController: GKTurnBasedMatchmakerViewController)
```

## Parameters

- `viewController`: The view controller that the player dismisses.

## Discussion

Discussion This method needs to dismiss the view controller.

## See Also

### Handling Cancellation and Errors

- [turnBasedMatchmakerViewController(_:didFailWithError:)](gamekit/gkturnbasedmatchmakerviewcontrollerdelegate/turnbasedmatchmakerviewcontroller(_:didfailwitherror:).md)
