I make a category included image scroll butI can't put my variable named tabBarItemName name into image, it keeps giving error like this : Cannot convert value of type 'Image' to expected argument type 'String'
struct ContentView: View {
        @State var currentTab: Int = 0
        var body: some View {
            ZStack(alignment:.top) {
                        TabView(selection:self.$currentTab){
                            Image1View().tag(0)
                            Image2View().tag(1)
                            Image3View().tag(2)
                        }
                        .tabViewStyle(.page(indexDisplayMode: .never))
                        .edgesIgnoringSafeArea(.all)
                        .padding(.top,76)
                        CategoryScroll(currentTab: self.$currentTab)
                    }   
       }
    }

    struct CategoryScroll:  View {
        var tabBarOptions: [Image] = [Image("bim")]
        @Binding var currentTab : Int
        var body: some View {
              ScrollView(.horizontal){
                  HStack(spacing:20){
                      ForEach(Array(zip(self.tabBarOptions.indices, self.tabBarOptions)),
                              id:\.0,
                              content: {
                          index, name in
                          CategoryView(currentTab: self.$currentTab, tab: index, tabBarItemName: name)
              })
            }
        }.padding(7)
        .background(Color.white)
    }

    struct CategoryView: View {
        @Binding var currentTab: Int
        var tab : Int
        var tabBarItemName: Image
        var body: some View{
            Button{
                self.currentTab = tab
            } label: {
                VStack{
                    Image(tabBarItemName) // I'm trying to make changes right here
                        .frame(width: 12, height: 12)
                        .padding(.leading, 65)
    
                    if currentTab == tab {
                        Color.init( red: 0.965, green: 0.224, blue: 0.49)
                            .frame(height: 2)
                            .padding(.leading,65)
                    } else {
                        Color.clear.frame(height: 6)
                    }
                }
                .animation(.spring(), value: self.currentTab)
                
            }
           .buttonStyle(.plain)
        }
      }
    }

I would be very happy if you could help me with this.

Cannot convert value of type 'Image' to expected argument type 'String'
Change
var tabBarOptions: [Image] = [Image("bim")]

to
var tabBarOptions: [String] = ["bim"]

And change
var tabBarItemName: Image

to
var tabBarItemName: String

The issue:
Image(tabBarItemName) is expecting a String, not an Image
