Skip to content

fix: inline top-bar background never paints on iOS 26.2 - #396

Open
SRWieZ wants to merge 1 commit into
NativePHP:mainfrom
SRWieZ:fix/ios26-inline-topbar-background
Open

fix: inline top-bar background never paints on iOS 26.2#396
SRWieZ wants to merge 1 commit into
NativePHP:mainfrom
SRWieZ:fix/ios26-inline-topbar-background

Conversation

@SRWieZ

@SRWieZ SRWieZ commented Aug 26, 2026

Copy link
Copy Markdown
Member

Replacement for #380, which was accidentally merged and then reverted. Reopened from the original branch at the maintainer’s request.

On iOS 26.2, an inline <native:top-bar> with an explicit background-color renders as a transparent band: the title and the actions take their colors, but the bar itself never paints. The toolbarBackground(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:

<native:top-bar title="Score" background-color="#59390E" text-color="#FAF4EA" display-mode="inline" />
Before After
before after

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 / automatic display modes keep #284's behavior unchanged, and pre-18 already requested visibility. Verified on the iOS 26.2 simulator.

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.
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