Element not getting clicked after scrolling to bottom of page on iOS

Not sure if it’s an app side issue or the way Appium handles clicks but when testing my app, if I scroll to the bottom of the page and then try to click an element, the first click/tap doesn’t register but the second one will. Appium itself will return that the click was successful and didn’t have any issues.

I’m using iOS 15.3.1 and Appium 1.22.2

Could just be some kind of rendering issue. When scrolling, the new elements will need to be represented on the current screen and because Appium can be fast that first click may happen before the element is through rendering. I would solve this with a try/catch block if you are getting an exception, with the catch containing the second click. You could also try a wait and then click, but I feel that might be less efficient.