Image(tabItem.tabImage)
.symbolRenderingMode(.palette)
.resizable()
.aspectRatio(contentMode: .fill)
.frame(width: 30, height: 30)
.foregroundStyle(
selected ? Color.green : Color.orange
)
Changing
.renderingMode(.template)
to
.symbolRenderingMode(.palette)
should make the active tab orange but all other tabs will be gray..
I'm currently stuck on the same problem. The label only applies the foregroundStyle for the active tab. All other tabs are gray regardless of the code.. I tried using custom buttons instead of the Tabs and that worked but then I ran into issues with the keyboard covering up textfields instead of pushing them to the top so I just went back to this until I can figure it out.. Definitely following this but I think the TabView limits customization
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: