---
title: delegate
framework: quicklook
role: symbol
role_heading: Instance Property
path: quicklook/qlpreviewcontroller/delegate
---

# delegate

The preview controller’s delegate object.

## Declaration

```swift
weak var delegate: (any QLPreviewControllerDelegate)? { get set }
```

## Discussion

Discussion The delegate determines whether to open URLs that the user taps in a preview. See QLPreviewControllerDelegate to learn more.

## See Also

### Configuring a preview controller

- [dataSource](quicklook/qlpreviewcontroller/datasource.md)
- [QLPreviewControllerDataSource](quicklook/qlpreviewcontrollerdatasource.md)
- [QLPreviewControllerDelegate](quicklook/qlpreviewcontrollerdelegate.md)
