MTDragPanOptions

public struct MTDragPanOptions : @unchecked Sendable, Codable

Options for drag and pan gesstures.

  • Factor used to scale the drag velocity.

    Note

    Default: 0

    Declaration

    Swift

    public var linearity: Double?
  • The maximum value of the drag velocity.

    Note

    Default: 1400

    Declaration

    Swift

    public var maxSpeed: Double?
  • The rate at which the speed reduces after the pan ends.

    Note

    Default: 2500

    Declaration

    Swift

    public var deceleration: Double?
  • Initializes the options with linearity, maxSpeed and deceleration.

    Declaration

    Swift

    public init(linearity: Double? = nil, maxSpeed: Double? = nil, deceleration: Double? = nil)