iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCIPinchZoomModifier

@interface SCIPinchZoomModifier : SCIGestureModifierBase

The SCIPinchZoomModifier provides zooming of the SCIChartSurface with the pinch gesture.

  • Defines UIPinchGestureRecognizer which is used to detect pinch gestures.

    Declaration

    Objective-C

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

    Swift

    var gestureRecognizer: UIPinchGestureRecognizer? { get }
  • Defines the scale factor to scale (or shrink) both axes on pinch gesture.

    Declaration

    Objective-C

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

    Swift

    var scaleFactor: Float { get set }
  • Defines the SCIDirection2D which restricts zoom interactivity to.

    Declaration

    Objective-C

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

    Swift

    var direction: SCIDirection2D { get set }
  • Defines the value which indicates whether uniform zoom should be used by this modifier.

    Note

    When uniform zoom is set to YES - then modifier applies same scale factor for both x and y direction, otherwise - scale factor calculated separately for x and y direction based on information from touch events.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL isUniformZoom;

    Swift

    var isUniformZoom: Bool { get set }