---
title: shared()
framework: gamekit
role: symbol
role_heading: Type Method
path: gamekit/gkmatchmaker/shared()
---

# shared()

Returns the singleton matchmaker instance.

## Declaration

```swift
class func shared() -> GKMatchmaker
```

## Return Value

Return Value The shared matchmaker instance.

## Discussion

Discussion Games don’t create a GKMatchmaker object. Use this method instead to get the shared singleton instance.
