OK. Both swipe and TouchAction work for me. 1.3.1 or 1.3.3.
Add these tests to
https://github.com/appium/java-client/blob/master/src/test/java/io/appium/java_client/ios/iOSGestureTest.java
@Test
public void testSwipe() throws Exception {
//click "Test Gesture" button
final WebElement button = driver.findElementByName("Test Gesture");
button.click();
//dismiss alert
final Alert alert = driver.switchTo().alert();
alert.accept();
//swipe gesture using driver.swipe
driver.swipe(200, 200, 200, 400, 500);
driver.swipe(200, 330, 200, 100, 500);
driver.swipe(200, 200, 200, 400, 500);
driver.swipe(200, 330, 200, 50, 500);
driver.swipe(200, 200, 200, 400, 500);
driver.swipe(200, 330, 200, 30, 500);
}
@Test
public void testTouchAction() throws Exception {
//click "Test Gesture" button
final WebElement button = driver.findElementByName("Test Gesture");
button.click();
//dismiss alert
final Alert alert = driver.switchTo().alert();
alert.accept();
//swipe gesture using TouchAction
TouchAction action = new TouchAction(driver);
action.press(200, 200).waitAction(500).moveTo(200, 400).release().perform();
action.press(200, 330).waitAction(500).moveTo(200, 100).release().perform();
action.press(200, 200).waitAction(500).moveTo(200, 400).release().perform();
action.press(200, 330).waitAction(500).moveTo(200, 50).release().perform();
action.press(200, 200).waitAction(500).moveTo(200, 400).release().perform();
action.press(200, 330).waitAction(500).moveTo(200, 30).release().perform();
}
Swiping up did not work for me, because the starting point somehow was not correct. I had to play with that point then everything is working.