Called when the user has pressed a source view in a previewing view controller, thereby obtaining a surrounding blur to indicate that a preview (peek) is available.
- iOS 9.0–13.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–13.0Deprecated
The context object for the previewing view controller.
The location of the touch in the source view’s coordinate system.
The view controller whose view you want to provide as the preview (peek), or
nil to disable preview..
Implement this method to return the preview view controller.
To indicate that a particular portion of the source view is responding to the user’s force touch, set the context object’s
source property to the desired rectangle. For example, if the context object’s
source property is a table view, you can set the
source property to the frame of the row indicated by the
location parameter’s value. When the system presents the preview (peek), it appears to originate from the selected row.
You can disable preview by returning
nil from this method.