New to coding and getting this error message "Cannot convert value of type 'Tab.Type' to expected argument type 'Binding'"
What can I change to fix this? here's my code:
enum Tab: String, CaseIterable{
case house
case person
case message
case gearshape
}
struct ContentView: View {
@Binding var selectedTab: Tab
private var fillImage: String {
selectedTab.rawValue + ".fill"
}
var body: some View {
VStack {
HStack {
}
.frame(width: nil, height: 60)
.background(.thinMaterial)
.cornerRadius(10)
.padding()
}
}
}