Instance Property

delegate

The previewing view controller's delegate for managing preview (peek) and commit (pop) view controllers.

Required.

Declaration

var delegate: UIViewControllerPreviewingDelegate { get }

Discussion

Set a previewing view controller’s 3D Touch delegate when you register the view controller by calling its registerForPreviewing(with:sourceView:) method.

For information on the methods the delegate can implement, read UIViewControllerPreviewingDelegate.

See Also

Accessing Properties of a 3D Touch Previewing View Controller

var sourceView: UIView

A source view, in a previewing view controller’s view hierarchy, responds to a 3D Touch by the user.

Required.