iOS- element.click() doesn't work for element out of viewport

iOS- element.click() doesn’t work for element out of viewport

Element which are out of view port are shown with x and y coordinates as zero . Hence if we perform element.click() it is not scrolled into view. Also mobile:scrollToElement throws

Expected : On performing element.click() appium would scroll element to view and currently it is not able to perform the same.

Device : iphone14 / iOS 16
Appium version : 2.0.0
Driver : 4.21.6
App Type : Flutter

so? swipe until element comes visible and tap on it.

Yes I am able to do it but it slows down the execution speed