The data source for a preview controller must adopt this protocol to provide preview items to the controller.
- iOS 4.0+
- Mac Catalyst 13.0+
Besides providing a
QLPreview with items to preview, this protocol is responsible for telling the preview controller how many items it needs to include in a preview item navigation list.
This protocol’s methods are required.