Add container visualization for accessibility snapshots#278
Draft
RoyalPineapple wants to merge 4 commits intomainfrom
Draft
Add container visualization for accessibility snapshots#278RoyalPineapple wants to merge 4 commits intomainfrom
RoyalPineapple wants to merge 4 commits intomainfrom
Conversation
ab737b5 to
b25c3f7
Compare
3d8c515 to
3733a88
Compare
452d709 to
b531faf
Compare
22e4ff1 to
5b522ad
Compare
5102b9b to
7a2587e
Compare
f887155 to
dc8efaa
Compare
RoyalPineapple
commented
Jan 27, 2026
e2c65ec to
bb6609f
Compare
Introduces new data structures for representing accessibility hierarchies: - AccessibilityElement: Represents individual accessible elements with all their properties (label, value, traits, hints, custom actions, etc.) - AccessibilityContainer: Represents semantic containers (lists, landmarks, tab bars, data tables, semantic groups) - AccessibilityHierarchy: Top-level structure containing root elements and all containers with their relationships The parser extracts container information from UIAccessibilityContainerType and builds a complete hierarchical representation that can be used for visualization, testing, or export. Includes Codable conformance for JSON serialization and comprehensive unit tests for the parsing logic. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Refactors the snapshot rendering code to use the new AccessibilityElement type instead of the internal AccessibilityMarker: - LegendView: Updated to accept AccessibilityElement for rendering accessibility information in the legend panel - AccessibilitySnapshotView: Updated to work with the new element type and prepare for container visualization support - AccessibilitySnapshotConfiguration: Minor formatting cleanup This is a preparatory change for adding container visualization overlays. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds a new demo view controller that showcases all accessibility container types with visual examples: - Semantic groups - Lists - Landmarks (banner, navigation, main, search, etc.) - Tab bars - Data tables Includes a snapshot test (testContainerHierarchy) with reference images for iOS 17.5 and iOS 18.5. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Regenerated all reference images on CI runners to ensure pixel-perfect matching with the updated rendering code: - iOS 17.5 images generated on macOS-14 runner - iOS 18.5 images generated on macOS-15 runner Also adds Example/Pods to .gitignore. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
bb6609f to
2635b9f
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.
Summary
Adds optional rendering of accessibility containers as dashed borders in snapshots, with hierarchical legend display.
Depends on #300 (hierarchical parsing API)
Commit 1: Update snapshot rendering to use AccessibilityElement
Refactors the snapshot rendering code to use the new
AccessibilityElementtype and adds container visualization support:AccessibilityElementfor rendering accessibility informationshowContainersoptionCommit 2: Add container hierarchy demo and snapshot test
Adds a new demo view controller that showcases all accessibility container types:
Includes
testContainerHierarchysnapshot test with reference images for iOS 17.5 and iOS 18.5.Commit 3: Update reference images from CI
Regenerated all reference images on CI runners:
Usage
What It Shows
🤖 Generated with Claude Code