Reputation: 361
I need my tabItem to be purple when active. Just like that:
Here's code sample:
// *some view*
.tabItem {
Image(systemName: "square.and.pencil")
Text("Задания")
}
Is there a way to do so?
Upvotes: 2
Views: 424
Reputation: 208
Please try this
.tabItem {
Image(systemName: "square.and.pencil")
Text("Задания")
}.accentColor(.orange)
Upvotes: 1