---
title: restrictToAutomatch
framework: gamekit
role: symbol
role_heading: Instance Property
path: gamekit/gkmatchrequest/restricttoautomatch
---

# restrictToAutomatch

A Boolean value that determines whether a game uses automatch to find players or the local player invites players.

## Declaration

```swift
var restrictToAutomatch: Bool { get set }
```

## Discussion

Discussion Use this property to match the local player only with players who are also actively looking for a match. If true, the local player can’t invite contacts, friends, or nearby players. The default value is false.

## See Also

### Deprecated methods and properties

- [inviteeResponseHandler](gamekit/gkmatchrequest/inviteeresponsehandler.md)
- [GKInviteeResponse](gamekit/gkinviteeresponse.md)
- [playersToInvite](gamekit/gkmatchrequest/playerstoinvite.md)
