---
title: previewItem
framework: quicklookui
role: symbol
role_heading: Instance Property
path: quicklookui/qlpreviewview/previewitem
---

# previewItem

The item to preview.

## Declaration

```swift
var previewItem: (any QLPreviewItem)! { get set }
```

## Discussion

Discussion Quick Look requires Items you wish to conform to the QLPreviewItem protocol. When you set this property, the QLPreviewView loads the preview asynchronously. Due to this asynchronous behavior, don’t assume that the preview is ready immediately after assigning it to this property.

## See Also

### Displaying a Preview

- [refreshPreviewItem()](quicklookui/qlpreviewview/refreshpreviewitem().md)
- [displayState](quicklookui/qlpreviewview/displaystate.md)
- [autostarts](quicklookui/qlpreviewview/autostarts.md)
