<!--
{
  "availability" : [
    "iOS: 13.0.0 - 14.0.0",
    "iPadOS: 13.0.0 - 14.0.0",
    "macCatalyst: 13.1.0 - 14.0.0",
    "macOS: 10.15.0 - 11.0.0",
    "tvOS: 13.0.0 - 14.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 6.0.0 - 7.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKMatchRequest/restrictToAutomatch",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKMatchRequest(py)restrictToAutomatch"
  },
  "title" : "restrictToAutomatch"
}
-->

# restrictToAutomatch

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

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

## Discussion

Use this property to match the local player only with players who are also actively looking for a match. If <doc://com.apple.documentation/documentation/Swift/true>, the local player can’t invite contacts, friends, or nearby players. The default value is <doc://com.apple.documentation/documentation/Swift/false>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)