How to scroll by text in iOS

Could anyone help with scrolling in iOS.

Try with this (Using Appium 1.8.0 and Java client 5.0.4 +):

new TouchAction(driver.getDriver()).press(x_start, y_start).waitAction(Duration.ofMillis(1000)).moveTo(x_end, y_end).waitAction(Duration.ofMillis(1000)).release().perform();

You need to insert start x, y coordinates and end x, y coordinates.

With 1.4 following were applicable for scrolling

scrollTo()
scrollToText()
swipe()
TouchActions class - moveToElement()

Can you get the code for scroll to text.