init(frame:style:)
Creates a preview view with the provided frame and style.
Declaration
init!(frame: NSRect, style: QLPreviewViewStyle)Parameters
- frame:
The frame rectangle for the initialized
QLPreviewViewobject. - style:
The desired style for the
QLPreviewViewobject. For a list of possible styles, see Qlpreviewviewstyle.
Return Value
Returns a QLPreviewView object with the designated frame and style.
Discussion
This is the designated initializer for the QLPreviewView class.