For example I get icon name from server and I need call it from lib
var body: some View{
VStack{
if let faIcon :String = self.data.widgetData[i].icon {
//faIcon - is icon name like "bomb" or something else
Awesome.Solid.faIcon.image // here I get error "Type 'Awesome.Solid' has no member 'faIcon'"
}
}
}
How can I use dynamic call icon from a string?
For example I get icon name from server and I need call it from lib
Is any way to solve this point?