Zooming x and y axis simultaneously


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?


Ok I just found the solution:

_chart.gesturePinchAspectLock = true;