Instance Property


The block called when the peek quick action is selected by the user.


var handler: (UIPreviewActionItem, UIViewController) -> Void { get }


The handler is set when the peek quick action is instantiated; it is immutable.

See Also

Creating a Peek Quick Action

init(title: String, style: UIPreviewAction.Style, handler: (UIPreviewAction, UIViewController) -> Void)

Creates a peek quick action using a specified title, style, and handler.