Learn Courses My Dashboard

How to programmatically fake a touch event to a UIButton?

I want to simulate fake touch on the mobile screen, User can give coordinates and at the same exact point user can click without touch the screen,
You can see this video on
Please see attached video


This is the example url.

Hello @muzammil if you’re working with UIKit maybe this solution can help you.

But if you’re working with SwiftUI, unfortunately I don’t know how I can help, this is one of the areas that is still unfamiliar for me, personally.