DragGesture

public struct DragGesture : Gesture, ExecutableGesture

This type will handle events of a user’s drag gesture.

  • Declaration

    Swift

    public struct Value : Equatable
  • Declaration

    Swift

    public var onChanged: ((`Self`.Value) -> Void)?
  • Declaration

    Swift

    public var onEnded: ((`Self`.Value) -> Void)?
  • Declaration

    Swift

    public init()
  • Declaration

    Swift

    public var body: DragGesture { get }