I’m developing Lumen Flow, an API client and Flow composer for macOS. I’m an independent developer and a VoiceOver user.

I need to be able to use the editor I’m building: understand a condition, configure a Call, and keep navigating after deleting a step.

A canvas has zoom, scrolling, selection, and connections between nodes. Giving each card an accessible name seems like a good start. But finding the cards is not the same as understanding the Flow.

If VoiceOver announces a step without indicating which branch it belongs to, some of the information conveyed by the lines and positions on screen has been lost. If a card disappears from accessibility as soon as it leaves the visible area, scrolling starts deciding what can be explored.

To address this, I built two representations from the same data: one to draw the Flow, and another to expose its organization to AppKit’s accessibility system.

Position doesn’t tell the whole story

Consider a condition that checks whether an account is active. In the true branch, the Flow fetches the profile and sends a message. In the false branch, it creates the account.

Visually, these paths can sit side by side. Navigating the cards by their coordinates, however, can alternate between branches and interrupt the reading of the logic. I need to encounter the condition before its branches and keep the steps of each path together.

The screenshot below shows another example: a payment condition with two Calls, one in each branch. The selected Call’s configuration appears in the Inspector.

Lumen Flow in dark mode. The canvas shows Buscar catálogo de produtos, Criar pedido do cliente, and Autorizar pagamento, followed by the condition Pagamento aprovado?, with Criar recibo on the left and Repetir on the right. The Call Criar pedido do cliente is selected, with its POST method and endpoint in the Inspector on the right.
Figure 1 — A condition on the canvas. Connections and card placement help identify the paths. The accessible representation needs to expose those relationships too. View the screenshot at its original size.

As I navigate, I need to know whether I’m inside a branch, whether a block contains other steps, whether it is expanded, and what its execution state is. That information belongs to the Flow, even when the card is outside the viewport—the visible area of the canvas.

Views for drawing, elements for navigation

The canvas is an AppKit NSView, hosted in SwiftUI through an NSViewControllerRepresentable. SwiftUI builds the surrounding interface; AppKit controls drawing and navigation within the editor.

Rendering is virtualized. The canvas keeps views for nodes that intersect the viewport, with a 200-point margin around it. Views that leave this area return to a reuse pool. Connections and other visual elements use CALayer.

Accessibility uses subclasses of NSAccessibilityElement, created from the Flow’s snapshots. These elements do not need their own view. A step can remain available to VoiceOver after its view has returned to the pool, provided it is not hidden by a collapsed block.

The Flow model produces snapshots containing identity, relationships, and state. Rendering uses them to maintain and reuse views in the viewport; the accessible outline maintains NSAccessibilityElement instances for nodes and branches according to their expansion state. Scrolling updates the viewport and geometry without rebuilding the outline.
Figure 2 — Two representations of the same Flow. Virtualization controls which views are mounted. Hierarchy and expansion state control which rows are available for navigation.

Accessible elements are reused too. The canvas caches nodes by UUID and branches by a composite key containing the parent’s UUID and the branch key. When the Flow is updated, it reuses existing instances and updates their data.

This avoids replacing every accessible object on each update. Preserving identity helps maintain navigation, but does not handle focus on its own: I still need to decide where focus goes when a row disappears.

The hierarchy becomes an outline

For navigation, what matters is the block hierarchy: conditions, loops, and parallel blocks. In the snapshots, parentID and branchKey identify where each step belongs.

The AccessibilityOutlineBuilder traverses this hierarchy in preorder: a block appears before its descendants. It produces the rows of an outline, a hierarchical list with nesting levels and disclosure relationships, exposed to AppKit.

Branches have their own rows. In the condition from the opening example, navigation encounters the condition, the true branch with its steps, and then the false branch. Both groups exist even when they are empty. In parallel blocks, named branches also appear as groups; in loops, steps sit directly under the block.

This order helps explain the structure. It does not describe a single execution timeline: a condition chooses a path, and a parallel block can execute paths concurrently.

A simple Call is a leaf. It can receive focus and be activated, but does not expose a compound block’s disclosure attributes. In the implementation, isAccessibilitySelectorAllowed(_:) prevents AppKit from querying the disclosure selectors on these leaves. Merely reporting “not expanded” could still cause VoiceOver to treat them as collapsed.

Scrolling doesn’t change the hierarchy

During scrolling, the cards’ positions on screen and the set of mounted views change. The Flow’s organization remains the same.

That is why recalculateVirtualization() does not rebuild the outline or post a .layoutChanged notification. Rebuilding happens in the graph update and expansion or collapse paths.

The accessibility frame is calculated when the system calls accessibilityFrame(). The element converts the snapshot’s frame from canvas coordinates to window coordinates, and then to screen coordinates. It does not need to rebuild the hierarchy to follow scrolling.

Navigation works in the other direction: when a node receives VoiceOver focus, the canvas calls scrollToVisible to bring it into the viewport. This also makes the navigation position visible on screen, including for people who use VoiceOver with residual vision.

What VoiceOver needs to announce

A step has a name, a type, and an execution state. It may also have a position in the sequence and specific content, such as a Call’s HTTP method or a condition’s expression.

In the usage tests that informed the implementation, putting these details in accessibilityValue() did not produce the announcement I needed when navigating the outline’s rows. I started combining the essential context in accessibilityLabel().

An illustrative phrase would be:

“Step 2 of 5, Call, Fetch profile, completed, GET.”

This example shows the content the label can combine, rather than a guaranteed VoiceOver transcript. The announcement also depends on the element’s role and the screen reader’s settings. The code adds context about the next step when available.

Today, a Call’s card may show only the HTTP method, without the URL. In that case, the label reflects that information; the complete endpoint is in the Inspector.

Expansion and selection remain exposed through AppKit’s own attributes. accessibilityHelp() provides usage guidance. I do not need to repeat those states manually in the label when the system already announces them.

Explore before opening a step for editing

Navigating the Flow should not change the open configuration with every movement.

The keyboard’s arrow keys traverse flatAXElements, the same logical list used by accessibility, including branches and collapsed state. The canvas updates the visual focus indicator and brings the step into view.

The Inspector’s configuration changes through explicit activation: VO + Space through the accessibility action, or Enter during keyboard navigation. That lets me inspect nearby steps without leaving the configuration I’m editing.

The code distinguishes the navigation position from the configuration selection. That distinction matters because the VoiceOver cursor, AppKit’s first responder, and the step open in the Inspector do not serve the same purpose.

Deletion needs additional care. Before removing obsolete elements from the cache, the canvas stores the logical index of the node that served as the navigation position. After rebuilding, it looks for a node near that index and posts the focus change. This recovery does not automatically activate another configuration.

If no rows remain, focus returns to the canvas container. Deleting the last step should not leave users trying to find where they ended up.

What the tests can verify

The builder’s tests cover order, nesting levels, parent–child relationships, and the effect of collapsing content. There are scenarios for conditions with empty branches, nested conditions, loops, and parallel blocks. The engine’s tests also cover element reuse and interactions with AppKit.

This helps detect regressions, but a correct list of elements does not prove that the VoiceOver experience is good. I still need to check what is announced and what happens during interactions:

  • Recognize the condition and its branches.
  • Expand and collapse blocks without treating simple Calls as expandable.
  • Navigate to a step outside the viewport.
  • Explore without changing the configuration open in the Inspector.
  • Keep navigating after deleting a step, including the last one.

Using VoiceOver during development lets me find these problems in my daily work. Evaluation by other people is still necessary: settings, navigation pace, and ways of using a screen reader vary.

What happens as the Flow grows?

Virtualization makes it possible to reduce the number of mounted views without removing offscreen steps from the outline. There is still work involved in maintaining snapshots, reconciling accessible elements, and updating geometry.

In the performance report dated August 4, 2026, a Debug build opened imported Flows containing 500 and 1,000 nodes in approximately 1.29 s and 1.45 s, respectively. The measured action was navigation from the sidebar to the canvas; the report recorded a responsive interface in both scenarios.

These times help establish the scale tested. They do not measure VoiceOver navigation latency, isolate the outline’s cost, or establish that the result can be attributed to virtualization alone. They are not performance guarantees for other Flows or machines either.

What I look for now

To evaluate the canvas, counting how many nodes VoiceOver finds is not enough. I need to recognize the branches, open a step for editing, and keep working after the Flow changes.

Separating views from accessible elements introduced more state to maintain: identity, expansion, geometry, focus, and notifications. That work makes it possible to optimize drawing without limiting navigation to the cards mounted at a given moment.

As a user of the editor, that continuity is how I tell whether the implementation works. Finding a step is the beginning; understanding where it belongs and being able to act on it is what makes the canvas useful.


I used an AI assistant to help revise the language and organization of this article. I take responsibility for its content.