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

# shared()

Retrieves the shared instance of the dialog controller.

## Declaration

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

## Return Value

Return Value The shared dialog controller.

## Discussion

Discussion You can use the shared dialog controller or create your own GKDialogController object. For example, you can create separate GKDialogController objects for different windows.
