Skip to content

IPrint Accessibility ID and Label Functions for SwiftUI + Swift 6 - #8

Merged
A161717 merged 2 commits into
mainfrom
feature/add-swiftui-compat-debug-testing-tools
Jul 24, 2026
Merged

IPrint Accessibility ID and Label Functions for SwiftUI + Swift 6#8
A161717 merged 2 commits into
mainfrom
feature/add-swiftui-compat-debug-testing-tools

Conversation

@tommybehner

Copy link
Copy Markdown
Collaborator

This PR adds SwiftUI + Swift 6 strict concurrency-friendly versions of the IPrint... a11y debugger functions. When used as a Swerkin step (ex - And.IPrintAllSwiftUILabels()), these functions will traverse the a11y tree and return all present accessibility labels (and/or IDs) for your debugging convenience.

@tommybehner

Copy link
Copy Markdown
Collaborator Author

@progressive-open-source I accept

…tion.swift. This correctly resolves the key window via UIWindowsScene. The original functions call UIWindow.topMostController on a new, empty UIWindow, which is a bug that would return nil in real cases. This was addition was needed as this debug code previously drew this helper function from the UIAutomation module where it originally existed.
@A161717
A161717 requested a review from a083409 July 24, 2026 15:37
@A161717
A161717 merged commit 4957eab into main Jul 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants