Change the tab selection color in TabBar SwiftUI
问题 I am trying to change the color of selected tab in TabBar, but nothing worked. I can change the TabBar backgroundColor by writing struct ContentView: View { init() { UITabBar.appearance().backgroundColor = UIColor.purple } var body: some View { } } In swift, we set tintColor and it does change the color of selected tab. But what do i need to do for swiftUI? Here is my code, TabView(selection: $selection) { AView() .tabItem { VStack { Image(systemName: "bubble.left.and.bubble.right") Text("A