The item to preview.
SDK
- macOS 10.7+
Framework
- Quartz
Declaration
var previewItem: QLPreview Item! { get set }
Discussion
Any item that you wish to preview must conform to the QLPreview
protocol. When you set this property, the QLPreview
will load the preview asynchronously. Due to this asynchronous behavior, you can’t assume that the preview is ready immediately after assigning it to this property.