Zooming x and y axis simultaneously


#1

I’m creating an SChartLineSeries and I need to keep the aspect ratio the same when the user zooms in with gesture. I have enabled:

    yAxis.enableGestureZooming = YES;

    xAxis.enableGestureZooming = YES;

Is there any way to track or zoom both axis simultaneously?


#2

Ok I just found the solution:

_chart.gesturePinchAspectLock = true;

Thanks