Skip to content

Blur the thread behind a pane's composer on iOS 26 - #224

Merged
simonhamp merged 1 commit into
mainfrom
fix/pane-bottom-bar-edge-blur
Nov 26, 2026
Merged

simonhamp merged 1 commit into
mainfrom
fix/pane-bottom-bar-edge-blur

Conversation

@simonhamp

Copy link
Copy Markdown
Member

Since #219, Remotes threads open as pages of the native:adaptive-feed host on iOS, as commits opened from the Log or Notifications already did. The host only kept the root of a page's bottom_bar and placed it with safeAreaInset. So the bar's edge_blur and glass were dropped, and iOS drew no scroll edge effect under the composer. One-to-one threads, org threads and commit panes all had this.

The host now keeps the bottom_bar element and places it like core's BottomBarInsetModifier:

  • With edge_blur on iOS 26 and later it uses safeAreaBar and sets the bar's scroll edge effect style.
  • Otherwise it uses safeAreaInset, with core's BottomBarSoftGlass when the bar has glass.

The tab bar clearance, the bar's background colour and fixedSize work as before.

That changed nothing on screen by itself. The workspace sits on a tab's root level, where core's TabBarEdgeBlurModifier sets scrollEdgeEffectHidden(true, for: .bottom) for the band it draws under the tab bar. Every page inherits that, and SwiftUI won't let a child show an effect an ancestor hid. With LLDB, the thread's bottomEdgeEffect.isHidden was true before this change, and adding .scrollEdgeEffectHidden(false) in the page didn't change it. So each page's hosting controller now turns the effect back on in UIKit, on the scroll view under the bar, when the bar asks for edge blur.

This only shows once #222's core (ec860d2) is in. On main's current lock the bars carry no edge_blur, so panes take the soft glass path, which they didn't draw before either.

What to watch:

  • The UIKit step relies on SwiftUI only writing isHidden when its own value changes. It stayed on through polls and light and dark switches. If a later iOS writes it on every update, the blur would drop out again.
  • The page finds its scroll view by shape: the outermost one that reaches the foot of the page and is at least half its height. Text views are skipped.
  • Not fixed here: core's tab bar band still lies over the foot of a pane opened in one column, because core doesn't know the host hid the tab bar. If you go back and open another thread without leaving the tab, the band can draw as an opaque strip that cuts off the bottom of the composer box. It does that before and after this change, and needs a fix in core.

Checked on the iPhone 17 Pro simulator (iOS 27) against a local API: one-to-one and org threads in Remotes, a commit from the Log and one from Notifications, light and dark, and with the keyboard up. I compared the commit pane with the same commit pushed by core from a profile. Also checked on the iPhone Duo simulator, open (two columns) and closed (one column).

Android doesn't use this host, so it's unchanged.

Tests: a new source test in FeedWorkspaceTest fails without the change. Suite on main plus #222 plus this: 2446 passed, 1 skipped.

Screenshots

commit

iOS light iOS dark Android light Android dark
Before
After

org-remote

iOS light iOS dark Android light Android dark
Before
After

remote

iOS light iOS dark Android light Android dark
Before
After

Android is unchanged, so there are no Android shots.

  • No visible change

🤖 Generated with Claude Code

Since #219 a Remotes thread opens as a page of the adaptive-feed host,
as a commit opened from the Log or Notifications already did. The host
kept only the bottom bar's root and placed it with safeAreaInset, so the
bar's edge_blur and glass were dropped and iOS drew no scroll edge
effect under the composer.

The host now keeps the bottom_bar element and places it the way core
does: safeAreaBar with the bar's edge blur style on iOS 26 and later,
otherwise safeAreaInset with core's soft glass.

That alone changed nothing on screen. The workspace sits on a tab's
root level, where core hides the bottom scroll edge effect for the band
it draws under the tab bar, and SwiftUI won't let a view below show an
effect an ancestor hid. So each page's hosting controller turns the
effect back on for its scroll view in UIKit when its bar asks for edge
blur.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@simonhamp
simonhamp marked this pull request as ready for review November 26, 2026 23:23
@simonhamp
simonhamp merged commit 6fff0d4 into main Nov 26, 2026
4 checks passed
@simonhamp
simonhamp deleted the fix/pane-bottom-bar-edge-blur branch November 26, 2026 23:23
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