Instance Method

addInteraction(_:)

Adds an interaction to the view.

Declaration

func addInteraction(_ interaction: UIInteraction)

Parameters

interaction

The interaction object to add to the view.

See Also

Adding and Removing Interactions

func removeInteraction(UIInteraction)

Removes an interaction from the view.

var interactions: [UIInteraction]

The array of interactions for the view.

protocol UIInteraction

The protocol that an interaction implements to access the view that owns it.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software