Protip: If you are looking for the easy way to get those new “Done” buttons in toolbars iOS 26, with the glass checkmark circle that’s tinted to your accent color:
Button(role: .confirm) {
dismiss()
}
.tint(.accentColor)
Took me way too long to figure that one out.
The close buttons with the X (which should not get tinted) are role: .close. If you tint that, it’ll tint the symbol, not the glass behind it. But you really shouldn’t tint anything in a toolbar except for a primary action anyway.
Oh, and forget setting the foregroundStyle on these buttons. The system will override any foregroundStyle because it attempts to auto-change the style depending on what’s under it. So if your accent color conflicts with whatever color it’s trying to tint the symbol, you’re out of luck.
Long story short: don’t bother playing with glass effects in toolbar buttons. There be dragons. The glass is already there.