Instance Property

dataSource

The preview controller’s data source.

Declaration

weak var dataSource: QLPreviewControllerDataSource? { get set }

Discussion

To use a Quick Look preview controller, you must implement a data source. The data source is responsible for providing items for display by the controller, and for telling it how many items to include in the preview navigation list. To learn more about implementing a data source, see QLPreviewControllerDataSource.

See Also

Configuring a Preview Controller

protocol QLPreviewControllerDataSource

The data source for a preview controller must adopt this protocol to provide preview items to the controller.

var delegate: QLPreviewControllerDelegate?

The preview controller’s delegate object.

protocol QLPreviewControllerDelegate

The delegate of a preview controller must adopt this protocol.