How I can find IOS simulator coordinates at run time?

I want to tap on IOS simulator coordinates . I have find out my simulator coordinates & tap on that . it’s working fine . But I want to run my script on other simulators as well with different resolutions. So is there any way where I can find my simulator coordinates at run time where I want to tap & tap on those coordinates .