iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.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 (nonatomic, weak, readonly, nullable) UIPinchGestureRecognizer *gestureRecognizer;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic) CGFloat scaleFactor;

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var isUniformZoom: Bool { get set }