iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

ISCIVisibleRangeAnimator

@protocol ISCIVisibleRangeAnimator <ISCIAttachable>

Defines the protocol with methods for animating VisibleRange of ISCIAxisCore.

  • Animates ISCIAxisCore.visibleRange to specified range.

    Declaration

    Objective-C

    - (void)animateTo:(nonnull id<ISCIRange>)to duration:(NSTimeInterval)duration;

    Swift

    func animate(to: ISCIRange, duration: TimeInterval)

    Parameters

    to

    The ISCIRange instance to animate to.

    duration

    The duration of animation measured in seconds.

  • 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 }