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

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



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Muhammad Raza