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:
However in iOS 26 I get this:
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…