feat: iOS blue-bubble chat feed anchored to the bottom - #39
Merged
Conversation
The chat feed now reads like a chat app: the ScrollView default-anchors to
the bottom (.defaultScrollAnchor(.bottom)) so the newest message sits at the
bottom of the screen on first paint and stays pinned as messages stream in.
Each incoming message renders through a new MessageBubble: a secondary
author + platform caption above a content-hugging systemBlue bubble (18pt
continuous corners, white body text), left-aligned with a trailing Spacer so
short messages stay short and long ones wrap without truncating. The row folds
into a single VoiceOver element ("<author> on <platform>: <text>").
The previous unconditional scroll-to-last is replaced with an isAtBottom-gated
animated follow (tracked via .onScrollGeometryChange), so a viewer scrolled up
reading history is no longer yanked to the bottom on every new message. The
empty-state ContentUnavailable overlay and per-row .id are preserved.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reworks the main-screen chat feed to read like a chat app.
.defaultScrollAnchor(.bottom)on theScrollView, so the newest message sits at the bottom of the screen on first paint and stays pinned as chat streams in.MessageBubble: a secondary author + platform caption above a content-hugging systemBlue bubble (18pt continuous corners, white body text), left-aligned with a trailingSpacer(minLength: 40)so short messages stay short and long ones wrap without truncating.isAtBottom-gated animated follow (tracked via.onScrollGeometryChange), so a viewer scrolled up reading history is no longer yanked to the bottom on every new message."<author> on <platform>: <text>").ContentUnavailableoverlay and per-row.id(message.id)preserved.How it was built
A 5-agent workflow: 3 independent designs (faithful-iMessage / modern-clean / robust-a11y) → judged & synthesized (winner grafted the accessibility+follow engine onto the iMessage caption) → adversarial SwiftUI review → SHIP.
Known tradeoffs (reviewed & accepted)
Testing
xcodebuild build -scheme Stream -destination 'generic/platform=iOS'→ BUILD SUCCEEDED.🤖 Generated with Claude Code