Skip to content

Blur what scrolls under the composer bars with iOS 26's scroll edge effect - #203

Draft
simonhamp wants to merge 4 commits into
fix/composer-fill-sheetfrom
feat/composer-scroll-edge
Draft

simonhamp wants to merge 4 commits into
fix/composer-fill-sheetfrom
feat/composer-scroll-edge

Conversation

@simonhamp

@simonhamp simonhamp commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Stacked on #198, the tip of the composer stack. main doesn't have composer-box or composer-fade yet, so this can't sit on it.

On iOS 26 and later the reply bar on a commit's page and the Remotes message bar now stand on the system's scroll edge effect, the progressive blur iOS draws under its own toolbars, instead of the opacity fade over glass. The field and its row of tools sit in a rounded Liquid Glass box on top of the blur, 16pt in from the screen's sides, the way Messages draws its composer.

Both bars carry class="glass/80" and edge-blur="soft". With NativePHP/mobile-air#741 the attribute makes iOS 26 place the bar with safeAreaBar and draw the edge effect, and the bar's glass is left out there. On iOS 26 the bar also drops its fade row and the tint on its rows, which would otherwise paint over the effect, and the page's end clearance loses the fade's 28pt. That comes from Display::hasScrollEdge(), which reads the iOS version from System::osVersion().

Two constants in Display switch the look:

  • ComposerInGlassBox (on) puts the field and tools in the glass box. Off, they sit straight on the blur.
  • ComposerEdgeBlur (soft) picks the effect. hard is the opaque fade.

In the box the field sits 16pt under the box's top edge, the same distance as from the field to the tools, and the send button is 8pt in from the box's right and bottom edges, so the box is rounded at 24 to follow the button. That makes the bar 6pt taller (ComposerGlassBoxBarHeight, 100 against 94), and both clearances follow it. The mention list, the "Replying to" card and the photos stay above the box in their own slots, 16pt in, so they line up with it.

iOS before 26 keeps the fade over glass with no box. Android keeps its fade over the surface.

Without #741 in vendor nothing changes on any iOS: hasScrollEdge() is false and the new tests skip (tests/Support/ScrollEdge.php). For a phone build, apply storage/app/patches/mobile-air-scroll-edge.patch and then mobile-air-tab-bar-scroll-edge.patch to vendor/nativephp/mobile. The second one swaps the old class for the attribute and adds the tab bar blur from NativePHP/mobile-air#743.

To watch for:

  • I haven't seen the real screens. They need a signed-in account. I checked the layout in a bare SwiftUI mock with the same paddings on the iOS 26.2 simulator, soft and hard, and the edge effect itself in the test app from #741 and #743.
  • The box is plain glass with no tint, so in dark mode it reads as the system's glass rather than the surface colour.

Tests: Pest 1981 passed. Without the patch, the scroll edge tests skip.

🤖 Generated with Claude Code

simonhamp and others added 4 commits November 22, 2026 10:23
…ffect

Both composer bars now carry scroll-edge-soft next to glass/80. With a
mobile-air that knows the class, iOS 26 and later draw the system scroll
edge effect under the bar, a progressive blur like the one under its own
toolbars, and the bar drops its fade row and the tint on its rows so the
effect shows. Older iOS keeps the fade over glass, and Android its fade
over the surface.

Which iOS the phone runs comes from System::osVersion(). Without a
mobile-air that has it, every iOS keeps the fade, and the new tests skip
(tests/Support/ScrollEdge.php).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From iOS 26 the field and its row of tools on the commit page's reply bar
and the Remote composer sit in a rounded Liquid Glass box, 16pt in from the
screen's sides, over the system's scroll edge effect. The bar asks for the
effect with mobile-air's new edge-blur attribute in place of the old
scroll-edge-soft class.

Two Display constants switch it: ComposerInGlassBox (on) and
ComposerEdgeBlur ("soft", or "hard" for the opaque fade). In the box the
field sits 16pt under the box's edge, as far as it sits above the tools,
and the send button is 8pt in from the box's right and bottom edges, so the
box is rounded at 24. That makes the bar 6pt taller, which the page and
thread clearances follow. Older iOS and Android draw the bars as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The suggestions now sit 8pt above the composer's glass box on the commit
page and in Remotes, instead of touching it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It sat flush on the composer's glass box. Now there's 8pt between them,
as there is under the mention list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant