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.