A research answer that writes itself word by word, with sources and a follow-up bar.
A research answer screen: the question as a serif headline, source chips, and a long answer rendered by an incremental markdown parser with a per-word fade inside one stable Text, a blinking cursor, two-tone code blocks and a follow-up bar.
$199 once, every piece included. See how installing works · Sign in
SwiftUI source you own, built on Apple frameworks only.
Editorial (style), AI Assistant (recipe). Your agent builds around this screen in the same design.
How it behaves, what it handles, and the decisions behind it.
Feed it the growing string. A private block parser commits finished blocks at blank lines and closed fences and re-parses only the unfinished tail, so cost stays flat as the reply grows. Inline bold, italic, code and links go through Foundation's inline markdown parser. Each block is a single Text; while the tail is being written, young words are appended as separately styled slices of the same attributed string, so nothing reflows. A cursor blinks at the end while streaming, and code blocks use a two-tone palette with comments and strings in the secondary color.
#–###### headings, paragraphs, -/*/+ and numbered lists, fenced code with a language label, and inline bold, italic, code and links.TimelineView that pauses once the newest word is opaque and the stream has ended.StreamingMarkdownStyle alone: serif display headings from the theme, clay list markers, and code on the sand block with comments at 66% of its ink.StreamingMarkdownExample at the end of StreamingMarkdown.swift is the Research screen from the preview.Pieces that work well next to this one.