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

Init from string code like fa-... #83

Open
ibrahimyilmaz7 opened this issue Jun 21, 2017 · 1 comment
Open

Init from string code like fa-... #83

ibrahimyilmaz7 opened this issue Jun 21, 2017 · 1 comment

Comments

@ibrahimyilmaz7
Copy link

ibrahimyilmaz7 commented Jun 21, 2017

How can i init font icon with code? For example:

imageView.setFAIconWithCode(code: "fa-github")

@jkmassel
Copy link
Contributor

jkmassel commented Jul 13, 2017

This is an autogenerated extension that I'm using: https://github.com/jkmassel/Font-Awesome-Swift/blob/master/Source/FAIcon%2BLookup.swift

The code used to generate it isn't all that pretty, but it uses the source font awesome repo to generate the list of keys and values. If the project maintainer wants to use it to improve this repo, I'm fine with it. It could easily be used to generate the values in FAType too.

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

No branches or pull requests

3 participants