Currently I use these code to perform swipe down in app but nothing happens. Please help
public void swipingVertical() throws InterruptedException {
size = driver.manage().window().getSize();
int starty = (int) (size.height * 0.8);
int endy = (int) (size.height * 0.2);
int startx = size.width / 2;
//Swipe from Bottom to Top.
new TouchAction(driver).press(PointOption.point(startx, starty)).
moveTo(PointOption.point(startx, endy)).release().perform();