Instance Property

view

The view from which the preview interaction receives touch events.

Declaration

weak var view: UIView? { get }

Discussion

A preview interaction operates on the view that is provided at initialization time. Use this property to obtain a reference to that same view. Note that this is a weak property—the preview interaction does not retain a reference to the view it is provided.

See Also

Handling Preview Interactions

func cancel()

Cancels the current preview interaction.

func location(in: UICoordinateSpace?) -> CGPoint

Returns the location of the touch that started the interaction.