iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCICameraAnimator
@protocol ISCICameraAnimator <ISCIAttachable>
Defines the interface with methods for animating position of ISCICameraController.
-
Animates camera to specified
positionandtargetposition with specified duration.Declaration
Objective-C
- (void)animatePosition:(nonnull SCIVector3 *)position andTarget:(nonnull SCIVector3 *)target withDuration:(NSTimeInterval)duration;Swift
func animatePosition(_ position: SCIVector3, andTarget target: SCIVector3, withDuration duration: TimeInterval)Parameters
positionThe final position of camera.
targetThe final target of camera.
durationThe animation duration.
-
Cancels running animation.
Declaration
Objective-C
- (void)cancelAnimation;Swift
func cancelAnimation() -
Gets the value indicating whether the animation is running.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL isAnimating;Swift
var isAnimating: Bool { get }
View on GitHub