cashapp / AccessibilitySnapshot

Easy regression testing for iOS accessibility
Apache License 2.0
534 stars 65 forks source link

Adding AXCustomContent support #172

Closed RoyalPineapple closed 7 months ago

RoyalPineapple commented 7 months ago

Introduced in iOS 14 Accessibility Custom Content allows the inclusion of arbitrary accessibility content defined using pairs of label and value. As a default this additional data is exposed under a "Custom Content" rotor entry, but can also be included in the element's VoiceOver utterance by setting the content's importance instance variable to .high or by adjusting verbosity in VoiceOver settings.

This PR adds support for displaying custom content similar to how we handle custom actions.