Swipe and uiautomator2

or could you please just find me a way of stopping the UiScrollable at first iteration as it is going past my search string at work but works on the appium app as the include text field in the first adapter

//driver.findElementByAndroidUIAutomator(“new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().textContains(”"+ str + “”).instance(0))");

Also having trouble setting up uiautomator2 with the gui appium client can you please assist