How to disable loading indicator?



Currently I could see the loadingIndicator when the chart is loading data, and I’d like to disable it. I’ve referred to this previous question but with no luck. The only difference here is that I’m using Swift 3.

This is my code:
func sChartWillStartLoadingData(_ chart: ShinobiChart) { chart.loadingIndicator!.isHidden = true }

I also tested it with setting the loadingIndicator to nil, or set it to clearColor by forcing it to UIActivityIndicatorView, and none works.

Is there something wrong? Thanks,



I found where the problem is. The indicator wasn’t the one of the chart. That’s why none of the settings works.

Thanks anyway for your help!