feat(ios): add VoiceOver element tree for rendered markdown - #655
Merged
Conversation
eszlamczyk
approved these changes
Aug 12, 2026
maksg
force-pushed
the
ios-parity/05-local-images-downsampling
branch
from
August 13, 2026 10:35
2c665e6 to
943a03a
Compare
Base automatically changed from
ios-parity/05-local-images-downsampling
to
main
August 13, 2026 11:07
Matches the Android package's TalkBack virtual view hierarchy. The
rendered attributed string is segmented into per-element VoiceOver
nodes: paragraphs split on newlines with spacer lines dropped, and
heading, link, and image runs carved into their own elements with
plain text between them.
Headings carry the header trait plus the heading-level text attribute
("heading, level N"), links activate the onLinkPress handler via
accessibilityActivate, images read their alt text, and list items
announce their position ("bullet point", "list item N", with a
"nested" prefix) exactly like Android. A list item's extent is the
intersection of its number and depth attribute runs, since either
alone merges with a neighbor.
Element frames resolve lazily from TextKit 2 layout on every query, so
scrolling and Dynamic Type changes never leave stale bounds. Requires
iOS 16 (frame math goes through textLayoutManager); iOS 15 keeps the
stock single-element behavior.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
maksg
force-pushed
the
ios-parity/06-voiceover
branch
from
August 13, 2026 11:07
2fa2ef1 to
fe5adb1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Matches the Android package's TalkBack virtual view hierarchy. The rendered attributed string is segmented into per-element VoiceOver nodes: paragraphs split on newlines with spacer lines dropped, and heading, link, and image runs carved into their own elements with plain text between them.
Headings carry the header trait plus the heading-level text attribute ("heading, level N"), links activate the onLinkPress handler via accessibilityActivate, images read their alt text, and list items announce their position ("bullet point", "list item N", with a "nested" prefix) exactly like Android. A list item's extent is the intersection of its number and depth attribute runs, since either alone merges with a neighbor.
Element frames resolve lazily from TextKit 2 layout on every query, so scrolling and Dynamic Type changes never leave stale bounds. Requires iOS 16 (frame math goes through textLayoutManager); iOS 15 keeps the stock single-element behavior.
What/Why?
Testing
PR Checklist