Instance Property

currentPreviewItemIndex

The index, within the preview item navigation list, of the item currently displayed in the Quick Look preview controller.

Declaration

var currentPreviewItemIndex: Int { get set }

Discussion

You can change which item is displayed, among those in a navigation list, by setting this property’s value. If no item is being displayed, this property’s value is NSNotFound.

See Also

Managing Item Previews

class func canPreview(QLPreviewItem) -> Bool

Indicates whether or not the Quick Look preview controller can display an item.

var currentPreviewItem: QLPreviewItem?

The item currently displayed in the Quick Look preview controller.

func refreshCurrentPreviewItem()

Asks the Quick Look preview controller to recompute the display of the current preview item.

func reloadData()

Asks the Preview Controller to reload its data from its data source.