Problem
In-app popups drive season launches, offers and unlocks, but changing one meant an engineering ticket and an app release. Web-view popups were quick but never felt native.
Approach
A versioned, platform-neutral scene graph. Designers compose it in a web builder; the app validates it and maps every node to its own native views.
What exists
A working web builder with five templates and multi-step flows, and a SwiftUI app that fetches, validates, caches and renders them on a real iPhone.
The fastest growth surface had the slowest pipeline.
In an episodic audio app, popups do real work: announcing a new season, offering a coin pack, explaining why an episode is locked, celebrating a streak. They change often. The app ships far less often.
The two usual answers both fail designers. Hard-coded popups look right but need a release for every change. Web views ship instantly but feel foreign inside a native app: wrong fonts, wrong motion, wrong safe areas. I wanted the third option, and a prototype convincing enough to get it on the roadmap: designers own the popup, the app owns how it renders.

Send intent, not markup.
The most important design work was the payload, not the UI. A published popup is a versioned scene graph of a few node types: container, stack, overlay, text, image, shape, button and spacer. No HTML, no CSS, no executable code ever reaches the app.
Platform-neutral
The app owns its native views, fonts and motion. iOS maps nodes to SwiftUI today; Android can implement the same contract later.
Normalized geometry
Sizes and offsets are fractions of the popup, not pixels, so one payload adapts across devices.
Overlap without hacks
Decorative overlap uses an explicit overlay with offsets capped at ±35%, instead of web-style negative margins.
Styles, then overrides
Text uses the app’s named type styles with property-level overrides, so popups stay on-brand by default.

A design tool that can’t produce a broken popup.
The builder authors on a true 393 × 852 iPhone canvas with a real app screen behind the popup, so designers judge it in context. Layers mirror the scene graph. The inspector shows which values are inherited from the app’s styles and which are overridden, with a reset.
Publish checks run continuously: schema and IDs, copy and style tokens, image assets, button actions, links between popups, and layout within safe bounds. Only buttons are interactive, and every button carries typed actions: deep link, dismiss, track event, open the next popup.

Native views, and fail-safe by default.
A Swift package decodes the flow, validates it and maps each node to SwiftUI. The app treats every payload as untrusted: unknown nodes or actions, broken popup links, bad URLs and unsafe bounds are rejected, and a bad payload never replaces the last good one.
Refresh is deliberately split in two. Reload latest fetches, validates and caches; Show popup presents. The last valid flow keeps working offline. A documented handler boundary means a campaign tool can later trigger the same renderer without changing it.
What the backend owns later
Targeting, scheduling, eligibility and analytics stay with the platform team. The prototype proves the rendering contract they would plug into.
Scope I held
Portrait iPhone, up to three popups per flow, buttons as the only interactive element. Enough to prove the loop; small enough to build properly.
The contract is the product.
Design the boundary
Deciding what the app owns and what the designer owns did more for quality than any screen in the builder.
Prototype to persuade
A popup changing on a real phone, with no release, answers questions a spec leaves open.
What’s next
Direct manipulation on the canvas, Android rendering from the same payload, and targeting from the campaign platform.
Try it
The full-screen demo runs in your browser. Publish shows the payload instead of sending it.

