Zoom an element to a specific percentage

Hi, is it possible to zoom an to element to a specific percentage? I use the python client and for android driver.zoom() didn’t work because it’s not implemented. I try to zoom with the TouchAction, but it’s hard to zoom to a specific percentage to the element. I’ve to use many move_to action to get a zoom. Why it doesn’t work with two moves per finger?

For iOS I use (for 20 %):

driver.execute_script('mobile: pinch', {'element': element, 'scale' : 1.2, 'velocity' : 1.0});

but it is not precise. Is there an option to increase the precision?

My code for andorid is:

    a1 = TouchAction(driver)
    a1.long_press(x=xx,y=yy+10).move_to(x=0, y=15).move_to(x=0, y=20).move_to(x=0, y=25).move_to(x=0, y=30).move_to(x=0, y=35).move_to(x=0, y=40).move_to(x=0, y=45).move_to(x=0, y=50).move_to(x=0, y=(50*percent)).wait(500).release()

    a2 = TouchAction(driver)
    a2.long_press(x=xx,y=yy-10).move_to(x=0, y=-15).move_to(x=0, y=-20).move_to(x=0, y=-25).move_to(x=0, y=-30).move_to(x=0, y=-35).move_to(x=0, y=-40).move_to(x=0, y=-45).move_to(x=0, y=-50).move_to(x=0, y=(-50*percent)).wait(500).release()

    ma = MultiAction(driver)
    ma.add(a2, a1)
    ma.perform();

xx and yy are the center of the element. I check the size of the element to check if the zoom was correct.

Can someone help me please?

for iOS try this:- https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/ios-xctest-mobile-gestures.md#mobile-pinch