How to automate signature on Signature pad using Appium?

Hi, I am using Appium on iOS application. I am trying to automate system signing on signature pad.
Object where signature is captured is an Image field.
I tried below gestures. In Appium logs it is returning status as 200 while identifying object, but no action is performed. Code is going to next step with out performing action. Can anyone let me know of any other actions I can perform on this field?

TouchAction t = new TouchAction(driver);

tap(driver.findElementByClassName(“XCUIElementTypeImage”)).perform();
t.press(driver. findElementByClassName(“XCUIElementTypeImage”)).waitAction(3000).release().perform();

t.longPress driver. findElementByClassName(“XCUIElementTypeImage”)),6000);