Contents

SpatialEventCollection

A collection of spatial input events that target a specific view.

Declaration

struct SpatialEventCollection

Overview

You receive a structure of this type as an input to the onChanged(_:) or onEnded(_:) method of a SpatialEventGesture. The structure contains a collection of SpatialEventCollection.Event values that correspond to ongoing input events. You can look up a specific event in the collection by its id value or iterate over all events in the collection to apply logic depending on the event’s state.

Topics

Accessing the collection’s events

Iterating over events in the collection

See Also

Recognizing spatial events