A preview action, or peek quick action, is displayed below a peek when a user swipes the peek upward. A peek quick action typically selects a deep link to your app and has a title, a style, and a handler.


Peeks and peek quick actions are available on devices that support 3D Touch.


Creating a Peek Quick Action

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

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

var handler: (UIPreviewActionItem, UIViewController) -> Void

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