home-assistant / Iconic

:art: Auto-generated icon font library for iOS, watchOS and tvOS
Apache License 2.0
1.58k stars 86 forks source link

stencil: Icon enum name not replaced #24

Closed connectdotz closed 7 years ago

connectdotz commented 8 years ago

the stencil template hard coded the icon enum name as "Icon" instead of {{enumName}}. Therefore the generated swift file (Pods/Iconic/Source/FontAwesomeIcon.swift) has : @objc public enum Icon: Int {...}

where it should be: @objc public enum FontAwesomeIcon: Int {...}

dzenbot commented 8 years ago

Yes. This is a change I've made very recently and need to update the README. This was done because I dropped the idea of having many icon fonts registered. It was adding complexity, verbosity to the APIs and making things just hard to implement. Sorry about the confusion.