In Android, the speed of the swipe can be controlled by varying the parameter inside the waitAction() method.
But the same is not working in iOS. Irrespective of the time value passed in waitAction(), the speed of swipe seems constant in iOS.
TouchAction tc = new TouchAction(driver);
tc.press((int) (xMax * 0.1), (int) (yMax * 0.35)).waitAction(Duration.ofMillis(200))
.moveTo((int) (xMax * 0.1), (int) (yMax * 0.75)).release().perform();
I used JavaScriptExecutor also ,but the result was the same.