---
title: reloadData()
framework: quicklookui
role: symbol
role_heading: Instance Method
path: quicklookui/qlpreviewpanel/reloaddata()
---

# reloadData()

Asks the preview panel to reload its data from its data source.

## Declaration

```swift
func reloadData()
```

## Discussion

Discussion This method doesn’t refresh the visible item if it hasn’t changed.

## See Also

### Managing the Preview Items

- [dataSource](quicklookui/qlpreviewpanel/datasource.md)
- [refreshCurrentPreviewItem()](quicklookui/qlpreviewpanel/refreshcurrentpreviewitem().md)
- [currentPreviewItemIndex](quicklookui/qlpreviewpanel/currentpreviewitemindex.md)
- [currentPreviewItem](quicklookui/qlpreviewpanel/currentpreviewitem.md)
- [displayState](quicklookui/qlpreviewpanel/displaystate.md)
