---
title: refreshPreviewItem()
framework: quicklookui
role: symbol
role_heading: Instance Method
path: quicklookui/qlpreviewview/refreshpreviewitem()
---

# refreshPreviewItem()

Updates the preview to display the currently previewed item.

## Declaration

```swift
func refreshPreviewItem()
```

## Discussion

Discussion When you modify the object that the previewItem property points to, call this method to generate and display the new preview.

## See Also

### Displaying a Preview

- [previewItem](quicklookui/qlpreviewview/previewitem.md)
- [displayState](quicklookui/qlpreviewview/displaystate.md)
- [autostarts](quicklookui/qlpreviewview/autostarts.md)
