HomeiOS DevelopmentiOS 26 Glass Impact and toolbarColorScheme

iOS 26 Glass Impact and toolbarColorScheme


I’ve this navigation bar styling in my swift app:

.listStyle(.plain)
.navigationBarTitleDisplayMode(.inline)
.toolbarBackground(.seen, for: .navigationBar)
.toolbarBackground(Coloration(hexString: "85278d"), for: .navigationBar)
.toolbarColorScheme(.darkish, for: .navigationBar)

In iOS 16 – 18, this produces this:

iOS 26 Glass Impact and toolbarColorScheme

However in iOS 26 I get this:

iOS26 Navigation Bar

Relying on how the content material scrolls, typically I do not get the white background on the button.

If I modify the toolbarColorScheme to .mild, the icon is black, however so is the label; which must be white on this background.

I’ve additionally tried making use of a .tint to the button, this works – however relying on if the web page scrolls depends upon what the tint needs to be, so it is getting a bit messy…

I am completely happy to embrace the glass impact, however how can I get the buttons to have the suitable icon color for the background the button has been given, just like the again button is doing…

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments