Skip to content

For IOS/UIKit Support UIGestureRecognizerDelegate for simultaneous gesture input as well as missing stock UIGestureRecognizers #3413

@jpedrick

Description

@jpedrick

On IOS/UIKit, by default only one GestureRecognizer will trigger at a time. Meaning a Pinch will block a rotation, which may be confusing or frustrating for users.

#3130 added pinch, rotation and a "double tap" gesture recognizer. Let's add the remaining:

UITapGestureRecognizer
UIPinchGestureRecognizer
UIRotationGestureRecognizer
UISwipeGestureRecognizer
UIPanGestureRecognizer
UIScreenEdgePanGestureRecognizer
UILongPressGestureRecognizer
UIHoverGestureRecognizer (Doesn't work on IOS)

Perhaps we can also make the TapGestureRecognizer helper function take the number of taps:
window.recognize_doubletap_gesture(true); -> window.recognize_tap_gesture(true,2); where 2 is the number of taps.

Finally, users may want to define more complex UIGestureRecognizerDelegate behavior. We can allow overriding this with function pointers installed on the WinitView or WinitViewController

Metadata

Metadata

Assignees

No one assigned

    Labels

    DS - uikitAffects the UIKit backend (iOS, tvOS, watchOS, visionOS)S - enhancementWouldn't this be the coolest?

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions