fix: inline top-bar background never paints on iOS 26.2 - #396
Open
SRWieZ wants to merge 1 commit into
Open
Conversation
The style overload plus containerBackground(for: .navigation) stopped painting inline bars on iOS 26.2 — the color only shows once content scrolls under the bar, so short screens keep a transparent band while title and actions still take their colors. Inline bars have no large-title row to lose to the Liquid Glass visibility bug, so they re-request .visible; large/automatic keep the visibility drop from NativePHP#284.
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.
On iOS 26.2, an inline
<native:top-bar>with an explicitbackground-colorrenders as a transparent band: the title and the actions take their colors, but the bar itself never paints. ThetoolbarBackground(style)+containerBackground(for: .navigation)pair from #284 only shows the color once content has scrolled under the bar — so a short screen keeps a see-through bar forever.Repro — any stack screen with:
Inline bars have no large-title row to lose to the Liquid Glass visibility bug #284 works around, so they re-request
.toolbarBackground(.visible, for: .navigationBar).large/automaticdisplay modes keep #284's behavior unchanged, and pre-18 already requested visibility. Verified on the iOS 26.2 simulator.