---
title: "init(matchRequest:)"
framework: gamekit
role: symbol
role_heading: Initializer
path: "gamekit/gkturnbasedmatchmakerviewcontroller/init(matchrequest:)"
---

# init(matchRequest:)

Creates a matchmaker view controller for the local player to start inviting other players to a turn-based game.

## Declaration

```swift
init(matchRequest request: GKMatchRequest)
```

## Parameters

- `request`: A match request that you configure for the characteristics of your game.

## Return Value

Return Value An initialized matchmaker view controller object or nil If an error occurs.

## See Also

### Creating and Configuring the View Controller

- [showExistingMatches](gamekit/gkturnbasedmatchmakerviewcontroller/showexistingmatches.md)
- [matchmakingMode](gamekit/gkturnbasedmatchmakerviewcontroller/matchmakingmode.md)
- [GKMatchmakingMode](gamekit/gkmatchmakingmode.md)
