Instance Method

modifiers(_:)

Matches events as long as the user holds down the modifier keys corresponding to the given modifiers option set.

Declaration

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

Parameters

modifiers

A set of flags corresponding to the modifier keys that must be down in order for the gesture to succeed.

Return Value

A new gesture.