Instance Property

handler

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

Declaration

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

Discussion

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.

Deprecated