Appium IOS Ipad Scroll not working

Hello All.

I am trying to implement a scroll function using Appium V1.22.3 on IOS iPad 7th Generation in Java.
I tried the below code, but the scroll didnt work.

RemoteWebElement element = (RemoteWebElement)driver. findElement(By.xpath("//XCUIElementTypeButton[@name=“xpath of the object till which the scroll should happen”]"));

    String elementID = element.getId();

    HashMap<String, String> scrollObject = new HashMap<String, String>();

    scrollObject.put("direction", "down");

    scrollObject.put("element", elementID);

    scrollObject.put("toVisible", "not an empty string");

    driver.executeScript("mobile: scroll", scrollObject);

The application which I am testing, Its screen has two parts(eg. left side can have items and right side can have the specification related to that items on left) and the scroll bar can be present in both the parts. Currently I want the scroll the items present on the right side of screen, without touching on the left side.
I tried using co-ordinates but its not working.
Thank You,

Regards
Ankita