iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCIAxisDragModifierBase

@interface SCIAxisDragModifierBase : SCIGestureModifierBase

Provides base class for dragging operations on axes.

  • Defines UIPanGestureRecognizer which is used to detect pan gestures.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable)
        UIPanGestureRecognizer *gestureRecognizer;

    Swift

    var gestureRecognizer: UIPanGestureRecognizer? { get }
  • Defines the SCIAxisDragMode of the SCIAxisDragModifierBase. This modifier may be used to scale or pan the ISCIAxisCore.visibleRange creating a scrolling or panning effect.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) SCIAxisDragMode dragMode;

    Swift

    var dragMode: SCIAxisDragMode { get set }
  • Defines minimal area of recognition (min height for horizontal axis or min width for vertical), where user click or touch triggers zoom behavior.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) float minTouchArea;

    Swift

    var minTouchArea: Float { get set }
  • Creates a new instance of the SCIAxisDragModifierBase class.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDefaultNumberOfTouches:
        (NSUInteger)numberOfTouches;

    Swift

    init(defaultNumberOfTouches numberOfTouches: UInt)

    Parameters

    numberOfTouches

    The default number of touches which will be used by underlying gestureRecognizer.