Class

UIPreviewAction

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.

Overview

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

Symbols

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.