Peek and Pop

Use 3D Touch input to display custom previews and actions for your content.

Topics

First Steps

Implementing Peek and Pop

Accelerate actions in your app by providing shortcuts to preview content in detail view controllers.

UIViewControllerPreviewing

A set of methods that define the interface for configuring a previewing view controller on devices that support 3D Touch.

UIViewControllerPreviewingDelegate

A set of methods used by the delegate to respond, with a preview view controller and a commit view controller, to the user pressing a view object on the screen of a device that supports 3D Touch.

Previews

UIPreviewInteractionDelegate

A set of methods for communicating the progress of a preview interaction.

UIPreviewAction

A preview action, or peek quick action, that is displayed below a peek when a user swipes the peek upward.

Deprecated
UIPreviewActionItem

A set of methods that defines the styles you can apply to peek quick actions and peek quick action groups, and defines a read-only accessor for the user-visible title of a peek quick action.

UIPreviewActionGroup

A group of one or more child quick actions, each an instance of the UIPreviewAction class.

Deprecated
UIPreviewInteraction

A class that registers a view to provide a custom user experience in response to 3D Touch interactions.

Home Screen

Add Home Screen Quick Actions

Expose commonly used functionality with static or dynamic 3D Touch Home screen quick actions.

UIApplicationShortcutIcon

An image you can optionally associate with a Home screen quick action to improve its appearance and usability.

UIApplicationShortcutItem

An application shortcut item, also called a Home screen dynamic quick action, that specifies a user-initiated action for your app.

UIMutableApplicationShortcutItem

An item that specifies a configurable user-initiated action for your app (the item is also called a mutable Home screen dynamic quick action).

See Also

User Interactions

Touches, Presses, and Gestures

Encapsulate your app's event-handling logic in gesture recognizers so that you can reuse that code throughout your app.

Drag and Drop

Bring drag and drop to your app by using interaction APIs with your views.

Pencil Interactions

Handle double-tap interactions that a user makes on Apple Pencil.

Focus-based Navigation

Navigate the interface of your UIKit app using a remote or game controller.

Menus and Shortcuts

Simplify interactions with your app by using menu systems and keyboard shortcuts.

Accessibility

Make your apps accessible to everyone, including people with disabilities.