---
title: shared()
framework: quicklookui
role: symbol
role_heading: Type Method
path: quicklookui/qlpreviewpanel/shared()
---

# shared()

Returns the shared Quick Look preview panel instance.

## Declaration

```swift
class func shared() -> QLPreviewPanel!
```

## Return Value

Return Value The shared Quick Look preview panel instance for the application.

## Discussion

Discussion This method creates the panel if it doesn’t exist yet. Use sharedPreviewPanelExists() if you want to determine whether the panel exists without creating it.

## See Also

### Accessing the Shared Panel

- [sharedPreviewPanelExists()](quicklookui/qlpreviewpanel/sharedpreviewpanelexists().md)
