Demonstrates how to use custom icon font with FontAwesomeKit.
Clone this repo, cd to the root folder of the project in command line, run pod install to install dependencies with CocoaPods, then open FontAwesomeKitCustomFont.xcworkspace.
- Add
pod 'FontAwesomeKit/Core'to the Podfile then runpod installto install the core of FontAwesomeKit. The core subspec contains 2 files:FAKIcon.handFAKIcon.m. If you prefer manually installation instead of CocoaPods, add these 2 files to your project. - Add you custom font to your project, make sure they are added to the build target.
- Subclass
FAKIcon, implement+ (UIFont *)iconFontWithSize:(CGFloat)size.+ allIconsis optional, but the- iconNamemethod ofFAKIconsubclasses relies on it.
The FCFCustomIcon.m file.