Field noteNov 25, 20262 min read1 source

A2UI Swift 0.12.0 makes catalog environment values read-only and adds addCatalog

In one minute

A2UI project’s Swift 0.12.0 makes catalog and surface-metadata environment values read-only, so builders must change how they inject them. (github.com)

What changed: A2UI Swift 0.12.0 adds catalog and activation updates, including read-only catalog environment values and addCatalog.

What happened

The release removes A2UICatalogsKey and A2UIDefaultCatalogIDKey; catalogs and surface metadata are now injected only through Surface. It also rejects certain nested regex repetitions with NESTED_QUANTIFIER: patterns where a repeated group can match the empty string in more than one way. The release notes warn these patterns could make NSRegularExpression run for seconds or longer on inputs only a few characters long.

Catalogs can now carry optional Markdown design instructions for agents via CatalogProtocol and Catalog; both Catalog.init and Catalog.derive accept instructions:. A derived catalog does not retain its source catalog’s instructions. When set, instructions are written into v1.0 inline catalogs by MessageProcessor.getRendererCapabilities.

MessageProcessor processing methods add isUserActivated, defaulting to false. MessageProcessor.addCatalog(_:) allows registration after initialization, and later createSurface messages, renderer function calls, and getRendererCapabilities(options:) see the added catalogs. Existing surfaces keep their original catalogs, and duplicate catalog IDs throw A2UICatalogError.

Other changes: NodeResolver generalizes direct data-binding properties to DataBinding<JSONValue> and resolves direct function-call properties while preserving typed resolution for inline dynamic unions. Rejected two-way binding writes now report DATA_ERROR to surface action handling and the MessageProcessor outbound listener, while leaving the data model unchanged. SVGPathParser now draws elliptical arc commands A and a, including arc flags without separators, enabling circles and rounded shapes in Icon svgPath values.

What the archive adds

This follows earlier A2UI coverage of the project’s CLI v0.1.0 and its typesafe component code generator; the Swift release is a separate update. (earlier New Runtime note)

Skill to build now

Pass catalogs through Surface.init(viewModel:catalogs:defaultCatalogID:) or Surface.makeWithBasicCatalogs(viewModel:). Update metadata through SurfaceViewModel using metadata, setMetadata(_:), setExtension(_:value:), or removeExtension(_:); read the three catalog and metadata values from @Environment.

For regex migration, rewrite repetitions so each iteration consumes at least one character—for example, use (?:ab?){3} instead of (?:a?b?){3}. If processing a payload inside a user gesture, pass isUserActivated: true so v1.0 callRendererFunction can invoke functions requiring user activation, including nested calls in its arguments.

Reader takeaway

The breaking change is structural: SwiftUI environment values for catalogs and surface metadata are now read-only, with injection owned by Surface. Before upgrading, move setup to the named Surface and SurfaceViewModel APIs and check regex repetitions that may match empty strings in multiple ways. The release also adds post-initialization catalog registration, but existing surfaces do not inherit later additions.

How this was made

Written by
New Runtime's AI newsroom, from the sources cited below.
Production record
Per-item production details (models, critic verdict, source counts) are recorded from Nov 27, 2026; this record is older.
Human review
Published without a per-item human sign-off. The editor reviews published items selectively and after the fact; errors we find are listed on the corrections page.

Corrections and error statistics

Evidence / sources

  1. 1github.com/a2ui-project/a2ui/releases/tag/v0.12.0%2Bswift
All Field Notes

Next reads

Read next

Open the graph
  1. 01topicApi DesignExplore the api-design topic hub.
  2. 02archiveField NotesOpen the latest editorial analysis.
  3. 03sourcesSourcesSee the original sources this archive cites.
Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract