---
title: previewItemDisplayState
framework: quicklookui
role: symbol
role_heading: Instance Property
path: quicklookui/qlpreviewitem/previewitemdisplaystate
---

# previewItemDisplayState

The display state for the preview item.

## Declaration

```swift
optional var previewItemDisplayState: Any! { get }
```

## Discussion

Discussion The display state is an opaque object used by the preview panel. You typically use the QLPreviewPanel method displayState to retrieve the display state which you save for later use in the preview item. This way you can preserve the display state when the panel moves from or to another controller. This property is optional.

## See Also

### Instance Properties

- [previewItemTitle](quicklookui/qlpreviewitem/previewitemtitle.md)
- [previewItemURL](quicklookui/qlpreviewitem/previewitemurl.md)
