iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.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 PanGestureRecognizer which is used to detect pan gestures.

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic) 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) 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) 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) 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) 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) BOOL zoomExtentsY;

    Swift

    var zoomExtentsY: Bool { get set }
  • Defines the property which determines whether this pan modifier will be inertial.

    Declaration

    Objective-C

    @property (nonatomic) BOOL inertial;

    Swift

    var inertial: 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.