`.toolbarBackground(.hidden)` not working
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 330
- Forks
- 76
- Avg merge
- 3h 6m
- Merged PRs (30d)
- 1
Description
https://github.com/skiptools/skipapp-showcase/blob/main/Sources/Showcase/ToolbarPlayground.swift
In the Toolbar Playground, there's a "Hide Bar Backgrounds" playground.
case .hideBarBackgrounds:
#if os(macOS)
Text("Not supported on macOS")
#else
HideToolbarsPlayground()
.navigationTitle($0.title)
.toolbarBackground(.hidden, for: .navigationBar, .tabBar)
#endif
On iOS 18, that makes the tab bar transparent; if you scroll up a little, it makes the collapsed navigation bar transparent, too.
On the "Medium Phone API 36" Android emulator, .toolbarBackground seems to have no effect at all. The tab bar is not transparent. and the collapsed navigation bar isn't transparent, either.
(On iOS 26, .toolbarBackground seems to have no effect. The tab bar seems unaffected, and the navigation bar is "transparent" by default, automatically blurring its background.)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Sources/Showcase/ToolbarPlayground.swift and the .hideBarBackgrounds case. Reproduce the behavior on iOS 18, the Medium Phone API 36 Android emulator, and iOS 26, then trace the toolbarBackground modifier used by HideToolbarsPlayground. Done means the tab and collapsed navigation bar backgrounds respond consistently to .hidden on the supported platforms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, ios, swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100