macOS 26 toolbar has wrong tint color sometimes in Dark Appearance

I have a SwiftUI Mac Catalyst app. I create a toolbar like this

        NavigationSplitView(columnVisibility: $sceneModel.columnVisibility, preferredCompactColumn: $preferredColumn) {
            sidebarView()
        } detail: {
            contentView()
                .toolbar {
                    ToolbarItemGroup(placement: .topBarTrailing) {
                        
                        
                        HStack {
                            
                            Button {
                                sceneModel.onMaps(sender: self)
                            } label: {
                                Image(systemName: "map")
                                    .font(.title2)
                            }
                            
                            Button {
                                sceneModel.onSearch(sender: self)
                            } label: {
                                Image(systemName: "magnifyingglass")
                                    .font(.title2)
                            }

                            ...
                        }
                    }
                }
        }

When my Mac Appearance is set to dark mode and the content under the toolbar is dark the toolbar looks good like this.

But then if I have light content under the toolbar, the glass effect changes to light, but the tint on the icons stays white instead of changing to black and it is hard to see the icon. It looks like this.

When I set the Appearance on my Mac to light, then the toolbar works just fine on both dark and light colored backgrounds.

Does anyone know how I can fix this when the appearance is Dark?

Thank you for the post and the images as well as the code snippet. The background color is different but tint appear to remain unchanged. Could you please provide additional information regarding the Xcode version you are using to encounter this issue? Additionally, it seems that you are utilizing Catalyst. Could you also share the SwiftUI code that generates this issue, including all relevant version information, so that I can reproduce it?

If so, please share a link to your test project. That'll help us better understand what's going on. If you're not familiar with preparing a test project, take a look at Creating a test project.

Albert Pascual
  Worldwide Developer Relations.

The best would for you to define a TintColor in assets that have a colour value for light mode and another colour value for dark mode

macOS 26 toolbar has wrong tint color sometimes in Dark Appearance
 
 
Q