Java code to scroll down in iOS
JavascriptExecutor js = (JavascriptExecutor) driver;
HashMap<String, String> scrollObject = new HashMap<String, String>();
// Scroll down to a visible text
scrollObject.put(“direction”, “down”);
scrollObject.put(“name”, “visible text”);
js.executeScript(“mobile: scroll”, scrollObject);
//simply scroll down to end
scrollObject.put(“direction”, “down”);
js.executeScript(“mobile: scroll”, scrollObject);
For more details please browse https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/ios/ios-xctest-mobile-gestures.md