iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCIPinchZoomModifier
@interface SCIPinchZoomModifier
: SCIGestureModifierBase <SCIPinchZoomModifierDelegate>
The SCIPinchZoomModifier provides zooming of the SCIChartSurface with the pinch gesture.
-
Defines
UIPinchGestureRecognizerwhich is used to detect pinch gestures.Declaration
Objective-C
@property (nonatomic, weak, readonly, nullable) UIPinchGestureRecognizer *gestureRecognizer;Swift
weak var gestureRecognizer: UIPinchGestureRecognizer? { get } -
Undocumented
Declaration
Objective-C
@property(nonatomic, weak) id <SCIPinchZoomModifierDelegate> _Nullable pinchZoomDelegateSwift
weak var pinchZoomDelegate: (any SCIPinchZoomModifierDelegate)? { get set } -
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
SCIDirection2Dwhich 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 toYES- 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 }
View on GitHub