How to change the color of a TabBar button with a conditional?

I have a TabBar with several options. I'd like the button color to change based on the tab name. I've managed to do this with categories that are directly connected to Supabase. However, if the text is fixed, I don't know how to indicate that it should rely on the tab's text to determine the color.

2 replies