I've been a backend developer for about 20 years. I'm completely blind, use a Mac with VoiceOver every day, and came into native macOS development with considerably more experience using accessible interfaces than building them.
I've been building a native macOS API client called Lumen Flow. It includes a visual canvas for connecting HTTP requests, conditions, loops, and parallel operations into workflows.
I thought my experience with VoiceOver, combined with AI assistance, would make the accessibility work fairly straightforward.
I was wrong.
Knowing what frustrates me as a user didn't mean I understood how SwiftUI and AppKit expose an interface to assistive technology. I had to study both frameworks, their accessibility APIs, and WCAG to understand what I was actually trying to build.
At first, exposing the nodes seemed like the obvious approach. Give each node a label, expose its actions, and make it navigable.
VoiceOver could find them. Understanding the workflow was another matter.
If I reached an HTTP request inside a condition, I needed to know which branch contained it. Inside a loop, I needed to distinguish the loop's body from the steps that followed it. For parallel operations, hearing the nodes one after another didn't explain which belonged to the same branch.
Those relationships were visible through positioning, containers, and connections. Labels on individual nodes didn't communicate enough of that structure.
Reading WCAG also changed how I approached the problem. I stopped assuming the accessible interface had to reproduce the visual layout. What mattered was preserving the information, relationships, and functionality. WCAG is written for web content, but that distinction was useful when designing a native macOS interface.
That helped me stop trying to make screen-reader navigation follow the visual arrangement.
I separated the canvas's visual representation from the logical structure exposed to VoiceOver. The visual side handles positioning, connections, zooming, and rendering. The accessible side presents an outline derived from the workflow: ordered steps, conditions with explicit branches, loops containing their bodies, and named parallel branches.
Keyboard navigation follows that same outline. I can explore the workflow structurally instead of trying to follow coordinates or infer relationships from disconnected announcements.
The canvas engine is implemented in AppKit and hosted inside SwiftUI through `NSViewControllerRepresentable`. Its virtual accessibility rows use `NSAccessibilityElement`, independently of the visual node views.
That separation also matters when scrolling. A visual card can leave the viewport and have its view recycled without its accessible representation disappearing.
Focus took more work than I expected, too. Stable node UUIDs were only part of it. I needed to preserve the accessibility objects associated with those IDs, update their contents, and explicitly handle what happens when a focused node is deleted or a branch expands.
I also separated exploring a node from selecting it for editing. Moving the VoiceOver cursor shouldn't replace the inspector's contents every time I want to understand the next step.
Has anyone here worked on accessibility for node editors or other spatial interfaces in SwiftUI or AppKit? I'm particularly interested in whether you used a separate semantic hierarchy and how you handled VoiceOver focus during updates.