Returns a newly initialized preview interaction for the specified view.
- iOS 10.0+
- Mac Catalyst 13.0+
The view for which the preview interaction should respond
An initialized preview interaction.
Preview interactions operate on touches within a specified view. Unlike gesture recognizers, the view doesn't maintain a strong reference to preview interactions. You must therefore retain a reference to the preview interaction to ensure that it continues to receive touches from the view.