Is there any way to change the image of a tab item in SwiftUI's TabbedView
when it's selected or unselected?
TabbedView(selection: $selection) {
Text("Home").tabItem {
Image(systemName: "house")
Text("Home")
}.tag(0)
Text("Away").tabItem {
Image("away")
Text("Away")
}.tag(1)
}
I've tried searching on the web but no answers were found. I'm using Xcode 11 beta 4.