<!--
{
  "availability" : [
    "iOS: 4.1.0 -",
    "iPadOS: 4.1.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKMatchmakerViewController/init(invite:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKMatchmakerViewController(im)initWithInvite:"
  },
  "title" : "init(invite:)"
}
-->

# init(invite:)

Creates a matchmaker view controller to present to a player who accepts an invitation.

```
init?(invite: GKInvite)
```

## Parameters

`invite`

The invitation that the player accepts.

## Return Value

An initialized matchmaker view controller object. If an error occurs, returns `nil`.

## Discussion

The interface shows the status of the other players accepting and declining their invitations until the game starts.

---

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)