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 install
to install the core of FontAwesomeKit. The core subspec contains 2 files:FAKIcon.h
andFAKIcon.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
.+ allIcons
is optional, but the- iconName
method ofFAKIcon
subclasses relies on it.
The FCFCustomIcon.m
file.