GestureOptions

public struct GestureOptions : Equatable

Configuration options for the built-in gestures

  • Whether the single-touch pan gesture is enabled. Defaults to true.

    Declaration

    Swift

    public var panEnabled: Bool
  • Whether the pinch gesture is enabled. Allows panning, rotating, and zooming. Defaults to true.

    Declaration

    Swift

    public var pinchEnabled: Bool
  • Whether rotation is enabled for the pinch gesture. Defaults to true.

    Declaration

    Swift

    public var pinchRotateEnabled: Bool
  • Can be used to make the desired trade-off between two available pinch gesture implementations. See PinchGestureBehavior for details. This API is marked as experimental in anticipation of future pinch gesture improvements that remove or update the nature of this trade-off.

    Declaration

    Swift

    @_spi(Experimental)
    public var pinchBehavior: PinchGestureBehavior
  • Whether the pitch gesture is enabled. Defaults to true.

    Declaration

    Swift

    public var pitchEnabled: Bool
  • Whether double tapping the map with one touch results in a zoom-in animation. Defaults to true.

    Declaration

    Swift

    public var doubleTapToZoomInEnabled: Bool
  • Whether single tapping the map with two touches results in a zoom-out animation. Defaults to true.

    Declaration

    Swift

    public var doubleTouchToZoomOutEnabled: Bool
  • Whether the quick zoom gesture is enabled. Defaults to true.

    Declaration

    Swift

    public var quickZoomEnabled: Bool
  • Configures the directions in which the map is allowed to move during a pan gesture. Defaults to PanMode.horizontalAndVertical. Called scrollMode in the Android SDK for consistency with platform conventions.

    Declaration

    Swift

    public var panMode: PanMode
  • A constant factor that determines how quickly pan deceleration animations happen. Multiplied with the velocity vector once per millisecond during deceleration animations. Defaults to UIScrollView.DecelerationRate.normal.rawValue

    Declaration

    Swift

    public var panDecelerationFactor: CGFloat
  • Undocumented

    Declaration

    Swift

    public init()