delegate
The previewing view controller’s delegate for managing preview (peek) and commit (pop) view controllers.
Declaration
var delegate: any 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.