Repository navigation
Blur the thread behind a pane's composer on iOS 26 - #224
Merged
Merged
Conversation
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>
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.
Since #219, Remotes threads open as pages of the
native:adaptive-feedhost on iOS, as commits opened from the Log or Notifications already did. The host only kept the root of a page'sbottom_barand placed it withsafeAreaInset. So the bar'sedge_blurandglasswere 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_barelement and places it like core'sBottomBarInsetModifier:edge_bluron iOS 26 and later it usessafeAreaBarand sets the bar's scroll edge effect style.safeAreaInset, with core'sBottomBarSoftGlasswhen the bar hasglass.The tab bar clearance, the bar's background colour and
fixedSizework as before.That changed nothing on screen by itself. The workspace sits on a tab's root level, where core's
TabBarEdgeBlurModifiersetsscrollEdgeEffectHidden(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'sbottomEdgeEffect.isHiddenwas 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:
isHiddenwhen 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.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
org-remote
remote
Android is unchanged, so there are no Android shots.
🤖 Generated with Claude Code