dataSource
The preview controller’s data source.
Declaration
weak var dataSource: (any QLPreviewControllerDataSource)? { get set }Discussion
To use a Quick Look preview controller, you need to 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.