FontasticIcons 0.5.0

FontasticIcons 0.5.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by AlexDenisov.


Downloads

Total22,153
Week109
Month535

Installs

Apps546
Apps WeekApps This Week 12
Pod Tries11
Test Targets31
Test WeekTests This week 2
Watch Apps2
powered by Segment

GitHub

Stars308
Watchers29
Forks40
Issues4
Contributors6
Pull Requests1

Code

Files33
LOCLines of Code 1,360


  • By
  • Alex Denisov and Jonathan Toland

FontasticIcons is an Objective-C wrapper for iconic fonts.

FontasticIcons example.

Installation

Manual

Just add sources from FontasticIcons/Sources/Classes directory to your project.

Usage

With UIView

#import <FontasticIcons.h>
...
FIIconView *iconView = [[FIIconView alloc] initWithFrame:CGRectMake(0, 0, 50, 50)];
iconView.backgroundColor = [UIColor clearColor];
iconView.icon = [FIEntypoIcon leafIcon];
iconView.padding = 2;
iconView.iconColor = [UIColor greenColor];
[self.view addSubview:iconView];

With UITabBarItem

#import <FontasticIcons.h>
...
FIIcon *icon = [FIEntypoIcon leafIcon];    
UIImage *image = [icon imageWithBounds:CGRectMake(0, 0, 30, 30) color:[UIColor blackColor]];
[self.tabBarItem setImage:image];

With UIButton

#import <FontasticIcons.h>
...
UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
button.frame = CGRectMake(0, 0, 60, 40);
FIIcon *icon = [FIEntypoIcon leafIcon];    

FIIconLayer *layer = [FIIconLayer new];
layer.icon = icon;
layer.frame = button.bounds;
layer.iconColor = [UIColor greenColor];
[button.layer addSublayer:layer];

Available fonts

License

Source code distributed under MIT license.

Note that all fonts have their own license.