Skip to content

Add DragGesture support #1153

Closed
Closed

Description

@Kyle-Ye

Summary

Add public DragGesture support to track drag events from touch and mouse input.

Scope

  • Add DragGesture, DragGesture.Value, and the minimumDistance and coordinateSpace initializers.
  • Add the _EventDirections SPI and the CGSize magnitude and normalization helpers that drag values use.
  • Deliver touch events on iOS and primary mouse events on macOS to the gesture.
  • Add DocC documentation for the gesture APIs.

Acceptance criteria

  • onChanged and onEnded receive location, start location, translation, velocity, and predicted end values on iOS and macOS.
  • A drag shorter than minimumDistance does not start the gesture.
  • Values use the requested coordinate space.

API reference

Activity

  1. added this to the 0.24.0 milestone on Oct 16, 2026
  2. added
    platform: iOS
    platform: macOS
    type: feature
    area: event-gesture
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: event-gestureplatform: iOSplatform: macOStype: feature

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions