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

# currentPreviewItemIndex

The index within the preview item navigation list of the item displaying in the Quick Look preview controller.

## Declaration

```swift
var currentPreviewItemIndex: Int { get set }
```

## Discussion

Discussion You can change which item the preview controller displays, among those in a navigation list, by setting this property’s value. If the preview controller isn’t displaying an item, this property’s value is NSNotFound.

## See Also

### Managing item previews

- [canPreview(_:)](quicklook/qlpreviewcontroller/canpreview(_:).md)
- [currentPreviewItem](quicklook/qlpreviewcontroller/currentpreviewitem.md)
- [refreshCurrentPreviewItem()](quicklook/qlpreviewcontroller/refreshcurrentpreviewitem().md)
- [reloadData()](quicklook/qlpreviewcontroller/reloaddata().md)
