How to get the UIAction's position on the screen?

93 Views Asked by At

In the below UI, I need to show Spotlight where we are going to show some feature of the button from UIAlertController.

So to add a mask to the UIWindow for that button I need it's exact location.

How can I get the exact location of UIAlertAction?

enter image description here

1

There are 1 best solutions below

2
Muhammad Raza On

I believe a better way to implement this use case, is to build a UIPopoverController and have control over frames.