Scroll To Item in iOS

Hello, I have problem to create good way to scrollTo element in iOS. I have pretty good way in Android, but struggle to make one in iOS
((AndroidDriver<MobileElement>) driver).findElementByAndroidUIAutomator("new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().textContains(\"" + str + "\").instance(0))");
Could any one could help me how to do it?

I would be thankful for for any help

Here was my PHP code for this

    $options = [
        'predicateString' => $locator,
        'direction' => $direction
            'script' => 'mobile: scroll',
            'args' => $options

I found out that this part of code works, but it doesn’t scroll to exact element:

public void iOSscrollDown(String elementAccessibilityId) {
    JavascriptExecutor js = (JavascriptExecutor) driver;
    HashMap<String, String> scrollObject = new HashMap<String, String>();
    scrollObject.put("direction", "down");
    scrollObject.put("label", elementAccessibilityId);
    js.executeScript("mobile: scroll", scrollObject);

Any know why?