Skip to content

Commit

Permalink
Merge pull request #109 from n-studio/fix/FAKOcticons-load-file
Browse files Browse the repository at this point in the history
fix: load octicons.ttf from FAKOcticons bundle
  • Loading branch information
PrideChung authored Jan 27, 2021
2 parents ed5eb02 + 615017e commit 41aeffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FontAwesomeKit/FAKOcticons.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ + (UIFont *)iconFontWithSize:(CGFloat)size
#ifndef DISABLE_IONICONS_AUTO_REGISTRATION
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
[self registerIconFontWithURL: [[NSBundle mainBundle] URLForResource:@"octicons" withExtension:@"ttf"]];
[self registerIconFontWithURL: [[NSBundle bundleForClass:[FAKOcticons class]] URLForResource:@"octicons" withExtension:@"ttf"]];
});
#endif

Expand Down

0 comments on commit 41aeffd

Please sign in to comment.