Instance Method

modifiers(_:)

Combines a gesture with keyboard modifiers.

Declaration

func modifiers(_ modifiers: EventModifiers) -> _ModifiersGesture<Self>

Parameters

modifiers

A set of flags that correspond to the modifier keys that the user needs to hold down.

Return Value

A new gesture that combines a gesture with keyboard modifiers.

Discussion

The gesture receives updates while the user presses the modifier keys that correspond to the given modifiers option set.

See Also

Adding Modifier Keys to a Gesture

struct EventModifiers

A set of key modifiers that you can add to a gesture.