Native iOS Slider - Assign new values issue

So I have a slider inside my app which is appears by clicking on a button. I try to modify the value of a slider type element (XCUIElementTypeSlider) by sending keys, but with no success. I use the following line of code which throws and unknown error:

mobileIOSDriver.findElement(By.xpath(elementXPath)).sendKeys(newValue); with “newValue” being a value between [0, 1]

I also tried to setValue(newValue) with the same result.

I am using the last Appium Studio 20.7.7153, Windows 10, IntelliJ - Java