SChartActivityIndicator

@protocol SChartActivityIndicator <NSObject>

ShinobiChart now offers you the option of loading data asynchronously. If data is loading in the background, the chart displays an activity indicator while the data is being loaded. The indicator can optionally adopt the SChartActivityIndicator protocol.

SChartActivityIndicator is based on the API of the UIActivityIndicatorView. As such, it offers methods to start and stop the indicator from animating. It also offers a color property to allow you to style the indicator.

  • The color of the activity indicator.

    Declaration

    Objective-C

    @property (readwrite, retain, nonatomic) UIColor *_Nonnull color;

    Swift

    var color: UIColor { get set }
  • Starts the activity indicator animating.

    Declaration

    Objective-C

    - (void)startAnimating;

    Swift

    func startAnimating()
  • Stops the activity indicator animating.

    Declaration

    Objective-C

    - (void)stopAnimating;

    Swift

    func stopAnimating()