When I try to get the frames of a AXUIElementRef
using AXUIElementCopyAttributeValue(element, (CFStringRef)attribute, &result)
the frames are shifted and rotated on the iOS simulator.
I get the same frames when using the Accessibility Inspector when the Max is selected as the host.
When I switch the host to the iOS simulator the frames are correct.
How is the Accessibility Inspector getting the correct frames? And how can I do the same in my app?