Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How I can dynamic call icon name? #64

Open
Zalarudo opened this issue May 26, 2022 · 1 comment
Open

How I can dynamic call icon name? #64

Zalarudo opened this issue May 26, 2022 · 1 comment

Comments

@Zalarudo
Copy link

Zalarudo commented May 26, 2022

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

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'"
  }
}
}

Is any way to solve this point?

@klousy92
Copy link

Check my PR #67

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants