iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCIZoomPanModifier

@interface SCIZoomPanModifier : SCIGestureModifierBase

The SCIZoomPanModifier provides a touch move to pan the X and Y Axes.

Note

Add to the SCIChartSurface and set isEnabled to YES to enable this behaviour.
  • Defines UIPanGestureRecognizer which is used to detect pan gestures.

    Declaration

    Objective-C

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

    Swift

    var gestureRecognizer: UIPanGestureRecognizer? { get }
  • Defines the SCIDirection2D which restricts zoom interactivity to.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        SCIDirection2D direction;

    Swift

    var direction: SCIDirection2D { get set }
  • Defines how panning behaves when you reach the edge of the X-Axis extents. e.g. SCIClipMode.SCIClipMode_ClipAtExtents prevents panning outside of the X-Axis, SCIClipMode.SCIClipMode_None allows panning outside.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        SCIClipMode clipModeX;

    Swift

    var clipModeX: SCIClipMode { get set }
  • Defines how panning behaves when you reach the edge of the Y-Axis extents. e.g. SCIClipMode.SCIClipMode_ClipAtExtents prevents panning outside of the Y-Axis, SCIClipMode.SCIClipMode_None allows panning outside.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        SCIClipMode clipModeY;

    Swift

    var clipModeY: SCIClipMode { get set }
  • Gets or sets which target is used as limit by clipModeX when you reach the edge of the X-Axis extents.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        SCIClipModeTarget clipModeTargetX;

    Swift

    var clipModeTargetX: SCIClipModeTarget { get set }
  • Gets or sets which target is used as limit by clipModeY when you reach the edge of the Y-Axis extents.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        SCIClipModeTarget clipModeTargetY;

    Swift

    var clipModeTargetY: SCIClipModeTarget { get set }
  • Gets or sets whether the SCIZoomPanModifier should perform zoom to extents on the Y-Axis on the each zoom operation when panning in X-Direction only. If YES - zoom to extents on the Y-Axis on the each zoom operation when panning in X-Direction only.

    Note

    Use in conjunction with direction to achieve different zooming effects.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite) BOOL zoomExtentsY;

    Swift

    var zoomExtentsY: Bool { get set }
  • Creates a new instance of the SCIZoomPanModifier 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.