stack icons into a composite image#12
Conversation
|
Hi, Alex Thanks for your pull request but stacked icons looks like a rarely used feature to me and I prefer not to merge this pull request. As I stressed before I want to keep FAK tiny because I believe reusable components are better than a giant library try to solve everything, I recommend that you put your code into a factory object like |
|
Hi Pride, Stacked icons are part of the FontAwesome project that FAK is named after. http://fortawesome.github.io/Font-Awesome/examples/#stacked If you look at the stacked examples on the FontAwesome project page, how are icons like fa-ban, fa-square, and fa-circle supposed to be useful in FontAwesomeKit if they can't be stacked with other icons? Best, |
|
OK I'm convinced that this is an useful feature, but putting |
|
I understand your feeling about this implementation being weird. FAK is your project, so I would be happy to follow your suggestion and make it whatever way that you'd prefer. :) Best, |
stack icons into a composite image
|
@alexshepard - So how does this work? I saw this was merged but can't seem to get it to do anything (note, I'm using Swift). |
|
@lynchseattle - Pride transitioned this feature into a UIImage category (which in my opinion looks much nicer than the way I originally coded it). In objective-c: |
It would be lovely to be able to stack multiple icons into the same image. Each icon could have a different color, alpha, shape and size, and the resulting image would be a composite of the various icons. In this way, we can create FAKIcons that have varying transparencies within the icon, as well as different colors within the icon. I don't know if others will use this, but I need it for my project! :)