Search code examples
iosxcodecore-locationview-hierarchy

View Hierarchy Not Capturing Location Authorization Prompt


Why does the view hierarchy NOT capture the location authorization prompt?

enter image description here


Solution

  • Because the view hierarchy shows only your app. The authorization prompt is not part of your app; it is imposed by the runtime, using a window that appears in front of yours and doesn't belong to you.