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

# init(matchRequest:)

Creates a matchmaker view controller for the local player to start inviting other players.

## Declaration

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

## Parameters

- `request`: The configuration for the match.

## Return Value

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

## See Also

### Creating and configuring the view controller

- [init(invite:)](gamekit/gkmatchmakerviewcontroller/init(invite:).md)
- [matchRequest](gamekit/gkmatchmakerviewcontroller/matchrequest.md)
- [canStartWithMinimumPlayers](gamekit/gkmatchmakerviewcontroller/canstartwithminimumplayers.md)
- [matchmakingMode](gamekit/gkmatchmakerviewcontroller/matchmakingmode.md)
- [GKMatchmakingMode](gamekit/gkmatchmakingmode.md)
