Instance Method

addInteraction(_:)

Adds the specified drag, drop, or spring-loaded interaction to the view.

Declaration

func addInteraction(_ interaction: UIInteraction)

Parameters

interaction

The interaction object to add to the view.

See Also

Supporting Drag and Drop Interactions

func removeInteraction(UIInteraction)

Removes the specified drag, drop, or spring-loaded interaction from the view.

var interactions: [UIInteraction]

The array of interactions for the view.