cashapp / AccessibilitySnapshot

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

Add ability to show newlines in accessibility descriptions #128

Closed NickEntin closed 9 months ago

NickEntin commented 1 year ago

Since VoiceOver supports iterating through lines via the accessibility rotor, it can be important to be able to distinguish between line wrapping in the snapshots due to the layout of the legend and line wrapping with explicit newlines. I think it would be beneficial to show an inline icon (e.g. using images in attributed strings) in the accessibility description depicting any explicit newline characters.

NickEntin commented 9 months ago

Been thinking about this a bit more. Since the line functionality depends on the layout of the text, I'm actually not sure how useful this would be. Marking it as a Won't Fix for now, but happy to reopen if anyone has a specific use case where they think this would help.