How to use UiObject & UiSelector for APPIUM IOS?

Hi, nee help :slight_smile:

In Android project (Java project) when i want to click on Element i do this :

public UiObject Button1(){
DataUsage1 = new UiSelector().xPath("//*[@text = ‘Data usage’]/…/…/android.widget.RelativeLayout[@index=‘1’]").makeUiObject();
return DataUsage1;

and then to Click op it :

uiObject.Button1().tap(); // tap on Gallery option

How do i do it in IOS ? I know that for click on element its like this :

drive. findElement(By.xpath("//…")).click();

I want to create a UiObject class for IOS with all my elements

Thanks :slight_smile: