Protocol UIView Controller Previewing
This protocol defines the interface for configuring a previewing view controller on devices that support 3D Touch.
The system returns a context object conforming to this protocol when you call a view controller’s
method. This method registers the view controller to participate in 3D Touch preview (peek) and commit (pop) behaviors. register For Previewing(with: source View:)
The end-user terminology for the views presented during the phases of force-based touches includes
peek and pop. For clarity here, and to align with the API names, this document uses the corresponding terms preview and commit view.
To learn about 3D Touch, read
Adopting 3D Touch on iPhone. Symbols Configuring a Source View for a 3D Touch Previewing View Controller var source Rect : CGRect
The rectangle, in the source view’s coordinate system, that responds to a forceful touch by a user and remains visually sharp while surrounding content blurs.
Accessing Properties of a 3D Touch Previewing View Controller var source View : UIView
A source view, in a previewing view controller’s view hierarchy, responds to a forceful touch by the user.