Hi, unable to scroll right by elements in iOS

Im trying to scroll right by element which is not visible on the screen, the code just does not scroll the scrollview at all, can anyone please suggest how can we scroll right on a scrollview bar.
RemoteWebElement element = (RemoteWebElement)driver.findElementByXPath("//XCUIElementTypeOther[@name=‘ToAccountScrollView’]"); String elementID = element.getId(); HashMap<String, String> scrollObject = new HashMap<String, String>(); scrollObject.put(“elementName”, elementID); // Only for ‘scroll in element’ scrollObject.put(“direction”, “right”); driver.executeScript(“mobile:scroll”, scrollObject);