Contents

largeContentViewerInteraction(_:didEndOn:at:)

Performs an action when the large content viewer gesture ends at the location of the specified item.

Declaration

optional func largeContentViewerInteraction(_ interaction: UILargeContentViewerInteraction, didEndOn item: (any UILargeContentViewerItem)?, at point: CGPoint)

Parameters

  • interaction:

    The large content viewer interaction associated with the view that the user interacted with.

  • item:

    The item that the user interacted with in the large content viewer.

  • point:

    The point where the user’s interaction ended, in the coordinate space of the item’s view.

Discussion

If you don’t implement this method and are using standard UIKit controls, the system performs a default action, such as sending a touchUpInside event to the control. If you’re using a custom view with its own tap gesture recognizer, implement this method to handle the interaction. For example, to perform the action that would have occurred if the user tapped on that item.

UIKit only calls this method if the gesture ends successfully, not if it fails or gets canceled.

See Also

Customizing large content viewer interactions