skiptools / skiptools/skip-ui

`.toolbarBackground(.hidden)` not working

Open
#307 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.