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 position and target position 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

    position

    The final position of camera.

    target

    The final target of camera.

    duration

    The 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 (readonly, nonatomic) BOOL isAnimating;

    Swift

    var isAnimating: Bool { get }