-
Notifications
You must be signed in to change notification settings - Fork 256
/
UIImage+FontAwesome.h
36 lines (34 loc) · 1.35 KB
/
UIImage+FontAwesome.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// UIImage+UIImage_FontAwesome.h
// FontAwesome-iOS Demo
//
// Created by Pedro Piñera Buendía on 22/08/13.
// Copyright (c) 2013 Alex Usbergo. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIImage (FontAwesome)
/**
* This method generates an UIImage with a given FontAwesomeIcon and format parameters
*
* @param identifier NSString that identifies the icon
* @param bgColor UIColor for background image Color
* @param iconColor UIColor for icon color
* @param scale Scale factor between the image size and the icon size
* @param size Size of the image to be generated
*
* @return Image to be used wherever you want
*/
+(UIImage*)imageWithIcon:(NSString*)identifier backgroundColor:(UIColor*)bgColor iconColor:(UIColor*)iconColor andSize:(CGSize)size;
/**
* This method generates an UIImage with a given FontAwesomeIcon and format parameters
*
* @param identifier NSString that identifies the icon
* @param bgColor UIColor for background image Color
* @param iconColor UIColor for icon color
* @param scale Scale factor between the image size and the icon size
* @param fontSize Font size used to be generate the image
*
* @return Image to be used wherever you want
*/
+(UIImage*)imageWithIcon:(NSString*)identifier backgroundColor:(UIColor*)bgColor iconColor:(UIColor*)iconColor fontSize:(int)fontSize;
@end