largeContentViewerInteraction(_:itemAt:)
Identifies the large content viewer item for the specified interaction and location.
Declaration
optional func largeContentViewerInteraction(_ interaction: UILargeContentViewerInteraction, itemAt point: CGPoint) -> (any UILargeContentViewerItem)?Parameters
- interaction:
The large content viewer interaction that needs an item.
- point:
The point where the user’s interaction is taking place, in the coordinate space of the view that contains the interaction.
Discussion
By default, UIKit finds the item for the interaction by calling point(inside:with:) recursively on your view hierarchy. If you’re not using views, implement this method to identify the item for an interaction at a given point.