---
title: delegate
framework: quicklookui
role: symbol
role_heading: Instance Property
path: quicklookui/qlpreviewpanel/delegate
---

# delegate

The delegate object that controls the preview panel’s behavior.

## Declaration

```swift
unowned(unsafe) var delegate: AnyObject! { get set }
```

## Discussion

Discussion The class assigned as the delegate should conform to the QLPreviewPanelDelegate protocol.
