Contents

UIViewControllerPreviewing

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

Declaration

@MainActor protocol UIViewControllerPreviewing : NSObjectProtocol

Overview

The system returns a context object conforming to this protocol when you call a view controller’s registerForPreviewing(with:sourceView:) method. This method registers the view controller to participate in 3D Touch preview (peek) and commit (pop) behaviors.

To learn about 3D Touch, read Adopting 3D Touch on iPhone.

Topics

Deprecated

See Also

Deprecated protocols