Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Docs added

  • Loading branch information...
commit afae628e30d3b37576d678eac16231dc99ef6086 1 parent b47fca1
Alexey Denisov authored
9 CONTRIBUTING.markdown
Source Rendered
... ... @@ -0,0 +1,9 @@
  1 +## Contribute to FontasticIcons
  2 +
  3 +If you want to contribute to FontasticIcons, follow this process:
  4 +
  5 +1. Fork the project
  6 +2. Create a feature branch
  7 +3. Code
  8 +4. Create a pull request
  9 +
14 FontasticIcons.xcodeproj/project.pbxproj
@@ -26,6 +26,7 @@
26 26 CA7C5606163E3AAD00AC32A3 /* FIEntypoIcon.m in Sources */ = {isa = PBXBuildFile; fileRef = CA7C5605163E3AAD00AC32A3 /* FIEntypoIcon.m */; };
27 27 CA7C5609163E433400AC32A3 /* CoreText.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CA7C5608163E433400AC32A3 /* CoreText.framework */; };
28 28 CA7C561A163EFBCC00AC32A3 /* FIEntypoSocialIcon.m in Sources */ = {isa = PBXBuildFile; fileRef = CA7C5619163EFBCC00AC32A3 /* FIEntypoSocialIcon.m */; };
  29 + CA7C561E163F060500AC32A3 /* FIMetaInfoManager.m in Sources */ = {isa = PBXBuildFile; fileRef = CA7C561D163F060500AC32A3 /* FIMetaInfoManager.m */; };
29 30 /* End PBXBuildFile section */
30 31
31 32 /* Begin PBXFileReference section */
@@ -61,6 +62,8 @@
61 62 CA7C5608163E433400AC32A3 /* CoreText.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreText.framework; path = System/Library/Frameworks/CoreText.framework; sourceTree = SDKROOT; };
62 63 CA7C5618163EFBCC00AC32A3 /* FIEntypoSocialIcon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FIEntypoSocialIcon.h; sourceTree = "<group>"; };
63 64 CA7C5619163EFBCC00AC32A3 /* FIEntypoSocialIcon.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FIEntypoSocialIcon.m; sourceTree = "<group>"; };
  65 + CA7C561C163F060500AC32A3 /* FIMetaInfoManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FIMetaInfoManager.h; sourceTree = "<group>"; };
  66 + CA7C561D163F060500AC32A3 /* FIMetaInfoManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FIMetaInfoManager.m; sourceTree = "<group>"; };
64 67 /* End PBXFileReference section */
65 68
66 69 /* Begin PBXFrameworksBuildPhase section */
@@ -148,6 +151,7 @@
148 151 CA7C55E8163DC49C00AC32A3 /* Base */ = {
149 152 isa = PBXGroup;
150 153 children = (
  154 + CA7C561B163F049100AC32A3 /* FIMetaInfoManager */,
151 155 CA7C5616163EFB4A00AC32A3 /* FIFont */,
152 156 CA7C5615163EFB2F00AC32A3 /* FIIcon */,
153 157 CA7C5614163EFB2100AC32A3 /* FIIconView */,
@@ -238,6 +242,15 @@
238 242 name = Entypo;
239 243 sourceTree = "<group>";
240 244 };
  245 + CA7C561B163F049100AC32A3 /* FIMetaInfoManager */ = {
  246 + isa = PBXGroup;
  247 + children = (
  248 + CA7C561C163F060500AC32A3 /* FIMetaInfoManager.h */,
  249 + CA7C561D163F060500AC32A3 /* FIMetaInfoManager.m */,
  250 + );
  251 + name = FIMetaInfoManager;
  252 + sourceTree = "<group>";
  253 + };
241 254 /* End PBXGroup section */
242 255
243 256 /* Begin PBXNativeTarget section */
@@ -315,6 +328,7 @@
315 328 CA7C55F8163DC81800AC32A3 /* FIFont.m in Sources */,
316 329 CA7C5606163E3AAD00AC32A3 /* FIEntypoIcon.m in Sources */,
317 330 CA7C561A163EFBCC00AC32A3 /* FIEntypoSocialIcon.m in Sources */,
  331 + CA7C561E163F060500AC32A3 /* FIMetaInfoManager.m in Sources */,
318 332 );
319 333 runOnlyForDeploymentPostprocessing = 0;
320 334 };
494 FontasticIcons/Sources/Classes/FIEntypoIcon.m
@@ -12,267 +12,255 @@
12 12
13 13 @implementation FIEntypoIcon
14 14
15   -#pragma mark - Static fields
16   -
17   -static id _iconsDictionary = nil;
18   -static id _font = nil;
19   -
20 15 #pragma mark - Overriden methods
21 16
22 17 + (FIFont *)iconFont {
23   - if (_font == nil) {
24   - _font = [FIFont entypoFont];
25   - }
26   - return _font;
  18 + return [FIFont entypoFont];
27 19 }
28 20
29 21 #pragma mark - Icons Dictionary
30 22
31 23 + (NSDictionary *)iconsDictionary {
32   - if (_iconsDictionary == nil) {
33   - _iconsDictionary = [[NSDictionary alloc] initWithDictionary:
34   - @{
35   - @"phone" : @"\U0001F4DE",
36   - @"mobile" : @"\U0001F4F1",
37   - @"mouse" : @"\U0000E789",
38   - @"address" : @"\U0000E723",
39   - @"mail" : @"\U00002709",
40   - @"paper-plane" : @"\U0001F53F",
41   - @"pencil" : @"\U0000270E",
42   - @"feather" : @"\U00002712",
43   - @"attach" : @"\U0001F4CE",
44   - @"inbox" : @"\U0000E777",
45   - @"reply" : @"\U0000E712",
46   - @"reply-all" : @"\U0000E713",
47   - @"forward" : @"\U000027A6",
48   - @"user" : @"\U0001F464",
49   - @"users" : @"\U0001F465",
50   - @"add-user" : @"\U0000E700",
51   - @"vcard" : @"\U0000E722",
52   - @"export" : @"\U0000E715",
53   - @"location" : @"\U0000E724",
54   - @"map" : @"\U0000E727",
55   - @"compass" : @"\U0000E728",
56   - @"direction" : @"\U000027A2",
57   - @"hair-cross" : @"\U0001F3AF",
58   - @"share" : @"\U0000E73E",
59   - @"shareable" : @"\U0001F4DE",
60   - @"heart" : @"\U00002665",
61   - @"heart-empty" : @"\U00002661",
62   - @"star" : @"\U00002605",
63   - @"star-empty" : @"\U00002606",
64   - @"thumbs-up" : @"\U0001F44D",
65   - @"thumbs-down" : @"\U0001F44E",
66   - @"chat" : @"\U0000E720",
67   - @"comment" : @"\U0000E718",
68   - @"quote" : @"\U0000275E",
69   - @"home" : @"\U00002302",
70   - @"popup" : @"\U0000E74C",
71   - @"search" : @"\U0001F50D",
72   - @"flashlight" : @"\U0001F526",
73   - @"print" : @"\U0000E716",
74   - @"bell" : @"\U0001F514",
75   - @"link" : @"\U0001F517",
76   - @"flag" : @"\U00002691",
77   - @"cog" : @"\U00002699",
78   - @"tools" : @"\U00002692",
79   - @"trophy" : @"\U0001F3C6",
80   - @"tag" : @"\U0000E70C",
81   - @"camera" : @"\U0001F4F7",
82   - @"megaphone" : @"\U0001F4E3",
83   - @"moon" : @"\U0000263D",
84   - @"palette" : @"\U0001F3A8",
85   - @"leaf" : @"\U0001F342",
86   - @"note" : @"\U0000266A",
87   - @"beamed-note" : @"\U0000266B",
88   - @"new" : @"\U0001F4A5",
89   - @"graduation-cap" : @"\U0001F393",
90   - @"book" : @"\U0001F4D5",
91   - @"newspaper" : @"\U0001F4F0",
92   - @"bag" : @"\U0001F45C",
93   - @"airplane" : @"\U00002708",
94   - @"lifebuoy" : @"\U0000E788",
95   - @"eye" : @"\U0000E70A",
96   - @"clock" : @"\U0001F554",
97   - @"mic" : @"\U0001F3A4",
98   - @"calendar" : @"\U0001F4C5",
99   - @"flash" : @"\U000026A1",
100   - @"thunder-cloud" : @"\U000026C8",
101   - @"droplet" : @"\U0001F4A7",
102   - @"cd" : @"\U0001F4BF",
103   - @"briefcase" : @"\U0001F4BC",
104   - @"air" : @"\U0001F4A8",
105   - @"hourglass" : @"\U000023F3",
106   - @"gauge" : @"\U0001F6C7",
107   - @"language" : @"\U0001F394",
108   - @"network" : @"\U0000E776",
109   - @"key" : @"\U0001F511",
110   - @"battery" : @"\U0001F50B",
111   - @"bucket" : @"\U0001F4FE",
112   - @"magnet" : @"\U0000E7A1",
113   - @"drive" : @"\U0001F4FD",
114   - @"cup" : @"\U00002615",
115   - @"rocket" : @"\U0001F680",
116   - @"brush" : @"\U0000E79A",
117   - @"suitcase" : @"\U0001F6C6",
118   - @"traffic-cone" : @"\U0001F6C8",
119   - @"globe" : @"\U0001F30E",
120   - @"keyboard" : @"\U00002328",
121   - @"browser" : @"\U0000E74E",
122   - @"publish" : @"\U0000E74D",
123   - @"progress-3" : @"\U0000E76B",
124   - @"progress-2" : @"\U0000E76A",
125   - @"progress-1" : @"\U0000E769",
126   - @"progress-0" : @"\U0000E768",
127   - @"light-down" : @"\U0001F505",
128   - @"light-up" : @"\U0001F506",
129   - @"adjust" : @"\U000025D1",
130   - @"code" : @"\U0000E714",
131   - @"monitor" : @"\U0001F4BB",
132   - @"infinity" : @"\U0000221E",
133   - @"light-bulb" : @"\U0001F4A1",
134   - @"credit-card" : @"\U0001F4B3",
135   - @"database" : @"\U0001F4F8",
136   - @"voicemail" : @"\U00002707",
137   - @"clipboard" : @"\U0001F4CB",
138   - @"cart" : @"\U0000E73D",
139   - @"box" : @"\U0001F4E6",
140   - @"ticket" : @"\U0001F3AB",
141   - @"rss" : @"\U0000E73A",
142   - @"signal" : @"\U0001F4F6",
143   - @"thermometer" : @"\U0001F4FF",
144   - @"water" : @"\U0001F4A6",
145   - @"sweden" : @"\U0000F601",
146   - @"line-graph" : @"\U0001F4C8",
147   - @"pie-chart" : @"\U000025F4",
148   - @"bar-graph" : @"\U0001F4CA",
149   - @"area-graph" : @"\U0001F53E",
150   - @"lock" : @"\U0001F512",
151   - @"lock-open" : @"\U0001F513",
152   - @"logout" : @"\U0000E741",
153   - @"login" : @"\U0000E740",
154   - @"check" : @"\U00002713",
155   - @"cross" : @"\U0000274C",
156   - @"squared-minus" : @"\U0000229F",
157   - @"squared-plus" : @"\U0000229E",
158   - @"squared-cross" : @"\U0000274E ",
159   - @"circled-minus" : @"\U00002296",
160   - @"circled-plus" : @"\U00002295",
161   - @"circled-cross" : @"\U00002716",
162   - @"minus" : @"\U00002796",
163   - @"plus" : @"\U00002795",
164   - @"erase" : @"\U0000232B",
165   - @"block" : @"\U0001F6AB",
166   - @"info" : @"\U00002139",
167   - @"circled-info" : @"\U0000E705",
168   - @"help" : @"\U00002753",
169   - @"circled-help" : @"\U0000E704",
170   - @"warning" : @"\U000026A0",
171   - @"cycle" : @"\U0001F504",
172   - @"cw" : @"\U000027F3",
173   - @"ccw" : @"\U000027F2",
174   - @"shuffle" : @"\U0001F500",
175   - @"back" : @"\U0001F519",
176   - @"level-down" : @"\U000021B3",
177   - @"retweet" : @"\U0000E717",
178   - @"loop" : @"\U0001F501",
179   - @"back-in-time" : @"\U0000E771",
180   - @"level-up" : @"\U000021B0",
181   - @"switch" : @"\U000021C6",
182   - @"numbered-list" : @"\U0000E005",
183   - @"add-to-list" : @"\U0000E003",
184   - @"layout" : @"\U0000268F",
185   - @"list" : @"\U00002630",
186   - @"text-doc" : @"\U0001F4C4",
187   - @"text-doc-inverted" : @"\U0000E731",
188   - @"doc" : @"\U0000E730",
189   - @"docs" : @"\U0000E736",
190   - @"landscape-doc" : @"\U0000E737",
191   - @"picture" : @"\U0001F304",
192   - @"video" : @"\U0001F3AC",
193   - @"music" : @"\U0001F3B5",
194   - @"folder" : @"\U0001F4C1",
195   - @"archive" : @"\U0000E800",
196   - @"trash" : @"\U0000E729",
197   - @"upload" : @"\U0001F4E4",
198   - @"download" : @"\U0001F4E5",
199   - @"save" : @"\U0001F4BE",
200   - @"install" : @"\U0000E778",
201   - @"cloud" : @"\U00002601",
202   - @"upload-cloud" : @"\U0000E711",
203   - @"bookmark" : @"\U0001F516",
204   - @"bookmarks" : @"\U0001F4D1",
205   - @"open-book" : @"\U0001F4D6",
206   - @"play" : @"\U000025B6",
207   - @"paus" : @"\U00002016",
208   - @"record" : @"\U000025CF",
209   - @"stop" : @"\U000025A0",
210   - @"ff" : @"\U000023E9",
211   - @"fb" : @"\U000023EA",
212   - @"to-start" : @"\U000023EE",
213   - @"to-end" : @"\U000023ED",
214   - @"resize-full" : @"\U0000E744",
215   - @"resize-small" : @"\U0000E746",
216   - @"volume" : @"\U000023F7",
217   - @"sound" : @"\U0001F50A",
218   - @"mute" : @"\U0001F507",
219   - @"flow-cascade" : @"\U0001F568",
220   - @"flow-branch" : @"\U0001F569",
221   - @"flow-tree" : @"\U0001F56A",
222   - @"flow-line" : @"\U0001F56B",
223   - @"flow-parallel" : @"\U0001F56C",
224   - @"left-bold" : @"\U0000E4AD",
225   - @"down-bold" : @"\U0000E4B0",
226   - @"up-bold" : @"\U0000E4AF",
227   - @"right-bold" : @"\U0000E4AE",
228   - @"left" : @"\U00002B05",
229   - @"down" : @"\U00002B07",
230   - @"up" : @"\U00002B06",
231   - @"right" : @"\U000027A1",
232   - @"circled-left" : @"\U0000E759",
233   - @"circled-down" : @"\U0000E758",
234   - @"circled-up" : @"\U0000E75B",
235   - @"circled-right" : @"\U0000E75A",
236   - @"triangle-left" : @"\U000025C2",
237   - @"triangle-down" : @"\U000025BE",
238   - @"triangle-up" : @"\U000025B4",
239   - @"triangle-right" : @"\U000025B8",
240   - @"chevron-left" : @"\U0000E75D",
241   - @"chevron-down" : @"\U0000E75C",
242   - @"chevron-up" : @"\U0000E75F",
243   - @"chevron-right" : @"\U0000E75E",
244   - @"chevron-small-left" : @"\U0000E761",
245   - @"chevron-small-down" : @"\U0000E760",
246   - @"chevron-small-up" : @"\U0000E763",
247   - @"chevron-small-right" : @"\U0000E762",
248   - @"chevron-thin-left" : @"\U0000E765",
249   - @"chevron-thin-down" : @"\U0000E764",
250   - @"chevron-thin-up" : @"\U0000E767",
251   - @"chevron-thin-right" : @"\U0000E766",
252   - @"left-thin" : @"\U00002190",
253   - @"down-thin" : @"\U00002193",
254   - @"up-thin" : @"\U00002191",
255   - @"right-thin" : @"\U00002192",
256   - @"arrow-combo" : @"\U0000E74F",
257   - @"three-dots" : @"\U000023F6",
258   - @"two-dots" : @"\U000023F5",
259   - @"dot" : @"\U000023F4",
260   - @"cc" : @"\U0001F545",
261   - @"cc-by" : @"\U0001F546",
262   - @"cc-nc" : @"\U0001F547",
263   - @"cc-nc-eu" : @"\U0001F548",
264   - @"cc-nc-jp" : @"\U0001F549",
265   - @"cc-sa" : @"\U0001F54A",
266   - @"cc-nd" : @"\U0001F54B",
267   - @"cc-pd" : @"\U0001F54C",
268   - @"cc-zero" : @"\U0001F54D",
269   - @"cc-share" : @"\U0001F54E",
270   - @"cc-remix" : @"\U0001F54F",
271   - @"db-logo" : @"\U0001F5F9",
272   - @"db-shape" : @"\U0001F5FA"}
273   - ];
274   - }
275   - return _iconsDictionary;
  24 + return @{
  25 + @"phone" : @"\U0001F4DE",
  26 + @"mobile" : @"\U0001F4F1",
  27 + @"mouse" : @"\U0000E789",
  28 + @"address" : @"\U0000E723",
  29 + @"mail" : @"\U00002709",
  30 + @"paper-plane" : @"\U0001F53F",
  31 + @"pencil" : @"\U0000270E",
  32 + @"feather" : @"\U00002712",
  33 + @"attach" : @"\U0001F4CE",
  34 + @"inbox" : @"\U0000E777",
  35 + @"reply" : @"\U0000E712",
  36 + @"reply-all" : @"\U0000E713",
  37 + @"forward" : @"\U000027A6",
  38 + @"user" : @"\U0001F464",
  39 + @"users" : @"\U0001F465",
  40 + @"add-user" : @"\U0000E700",
  41 + @"vcard" : @"\U0000E722",
  42 + @"export" : @"\U0000E715",
  43 + @"location" : @"\U0000E724",
  44 + @"map" : @"\U0000E727",
  45 + @"compass" : @"\U0000E728",
  46 + @"direction" : @"\U000027A2",
  47 + @"hair-cross" : @"\U0001F3AF",
  48 + @"share" : @"\U0000E73E",
  49 + @"shareable" : @"\U0001F4DE",
  50 + @"heart" : @"\U00002665",
  51 + @"heart-empty" : @"\U00002661",
  52 + @"star" : @"\U00002605",
  53 + @"star-empty" : @"\U00002606",
  54 + @"thumbs-up" : @"\U0001F44D",
  55 + @"thumbs-down" : @"\U0001F44E",
  56 + @"chat" : @"\U0000E720",
  57 + @"comment" : @"\U0000E718",
  58 + @"quote" : @"\U0000275E",
  59 + @"home" : @"\U00002302",
  60 + @"popup" : @"\U0000E74C",
  61 + @"search" : @"\U0001F50D",
  62 + @"flashlight" : @"\U0001F526",
  63 + @"print" : @"\U0000E716",
  64 + @"bell" : @"\U0001F514",
  65 + @"link" : @"\U0001F517",
  66 + @"flag" : @"\U00002691",
  67 + @"cog" : @"\U00002699",
  68 + @"tools" : @"\U00002692",
  69 + @"trophy" : @"\U0001F3C6",
  70 + @"tag" : @"\U0000E70C",
  71 + @"camera" : @"\U0001F4F7",
  72 + @"megaphone" : @"\U0001F4E3",
  73 + @"moon" : @"\U0000263D",
  74 + @"palette" : @"\U0001F3A8",
  75 + @"leaf" : @"\U0001F342",
  76 + @"note" : @"\U0000266A",
  77 + @"beamed-note" : @"\U0000266B",
  78 + @"new" : @"\U0001F4A5",
  79 + @"graduation-cap" : @"\U0001F393",
  80 + @"book" : @"\U0001F4D5",
  81 + @"newspaper" : @"\U0001F4F0",
  82 + @"bag" : @"\U0001F45C",
  83 + @"airplane" : @"\U00002708",
  84 + @"lifebuoy" : @"\U0000E788",
  85 + @"eye" : @"\U0000E70A",
  86 + @"clock" : @"\U0001F554",
  87 + @"mic" : @"\U0001F3A4",
  88 + @"calendar" : @"\U0001F4C5",
  89 + @"flash" : @"\U000026A1",
  90 + @"thunder-cloud" : @"\U000026C8",
  91 + @"droplet" : @"\U0001F4A7",
  92 + @"cd" : @"\U0001F4BF",
  93 + @"briefcase" : @"\U0001F4BC",
  94 + @"air" : @"\U0001F4A8",
  95 + @"hourglass" : @"\U000023F3",
  96 + @"gauge" : @"\U0001F6C7",
  97 + @"language" : @"\U0001F394",
  98 + @"network" : @"\U0000E776",
  99 + @"key" : @"\U0001F511",
  100 + @"battery" : @"\U0001F50B",
  101 + @"bucket" : @"\U0001F4FE",
  102 + @"magnet" : @"\U0000E7A1",
  103 + @"drive" : @"\U0001F4FD",
  104 + @"cup" : @"\U00002615",
  105 + @"rocket" : @"\U0001F680",
  106 + @"brush" : @"\U0000E79A",
  107 + @"suitcase" : @"\U0001F6C6",
  108 + @"traffic-cone" : @"\U0001F6C8",
  109 + @"globe" : @"\U0001F30E",
  110 + @"keyboard" : @"\U00002328",
  111 + @"browser" : @"\U0000E74E",
  112 + @"publish" : @"\U0000E74D",
  113 + @"progress-3" : @"\U0000E76B",
  114 + @"progress-2" : @"\U0000E76A",
  115 + @"progress-1" : @"\U0000E769",
  116 + @"progress-0" : @"\U0000E768",
  117 + @"light-down" : @"\U0001F505",
  118 + @"light-up" : @"\U0001F506",
  119 + @"adjust" : @"\U000025D1",
  120 + @"code" : @"\U0000E714",
  121 + @"monitor" : @"\U0001F4BB",
  122 + @"infinity" : @"\U0000221E",
  123 + @"light-bulb" : @"\U0001F4A1",
  124 + @"credit-card" : @"\U0001F4B3",
  125 + @"database" : @"\U0001F4F8",
  126 + @"voicemail" : @"\U00002707",
  127 + @"clipboard" : @"\U0001F4CB",
  128 + @"cart" : @"\U0000E73D",
  129 + @"box" : @"\U0001F4E6",
  130 + @"ticket" : @"\U0001F3AB",
  131 + @"rss" : @"\U0000E73A",
  132 + @"signal" : @"\U0001F4F6",
  133 + @"thermometer" : @"\U0001F4FF",
  134 + @"water" : @"\U0001F4A6",
  135 + @"sweden" : @"\U0000F601",
  136 + @"line-graph" : @"\U0001F4C8",
  137 + @"pie-chart" : @"\U000025F4",
  138 + @"bar-graph" : @"\U0001F4CA",
  139 + @"area-graph" : @"\U0001F53E",
  140 + @"lock" : @"\U0001F512",
  141 + @"lock-open" : @"\U0001F513",
  142 + @"logout" : @"\U0000E741",
  143 + @"login" : @"\U0000E740",
  144 + @"check" : @"\U00002713",
  145 + @"cross" : @"\U0000274C",
  146 + @"squared-minus" : @"\U0000229F",
  147 + @"squared-plus" : @"\U0000229E",
  148 + @"squared-cross" : @"\U0000274E ",
  149 + @"circled-minus" : @"\U00002296",
  150 + @"circled-plus" : @"\U00002295",
  151 + @"circled-cross" : @"\U00002716",
  152 + @"minus" : @"\U00002796",
  153 + @"plus" : @"\U00002795",
  154 + @"erase" : @"\U0000232B",
  155 + @"block" : @"\U0001F6AB",
  156 + @"info" : @"\U00002139",
  157 + @"circled-info" : @"\U0000E705",
  158 + @"help" : @"\U00002753",
  159 + @"circled-help" : @"\U0000E704",
  160 + @"warning" : @"\U000026A0",
  161 + @"cycle" : @"\U0001F504",
  162 + @"cw" : @"\U000027F3",
  163 + @"ccw" : @"\U000027F2",
  164 + @"shuffle" : @"\U0001F500",
  165 + @"back" : @"\U0001F519",
  166 + @"level-down" : @"\U000021B3",
  167 + @"retweet" : @"\U0000E717",
  168 + @"loop" : @"\U0001F501",
  169 + @"back-in-time" : @"\U0000E771",
  170 + @"level-up" : @"\U000021B0",
  171 + @"switch" : @"\U000021C6",
  172 + @"numbered-list" : @"\U0000E005",
  173 + @"add-to-list" : @"\U0000E003",
  174 + @"layout" : @"\U0000268F",
  175 + @"list" : @"\U00002630",
  176 + @"text-doc" : @"\U0001F4C4",
  177 + @"text-doc-inverted" : @"\U0000E731",
  178 + @"doc" : @"\U0000E730",
  179 + @"docs" : @"\U0000E736",
  180 + @"landscape-doc" : @"\U0000E737",
  181 + @"picture" : @"\U0001F304",
  182 + @"video" : @"\U0001F3AC",
  183 + @"music" : @"\U0001F3B5",
  184 + @"folder" : @"\U0001F4C1",
  185 + @"archive" : @"\U0000E800",
  186 + @"trash" : @"\U0000E729",
  187 + @"upload" : @"\U0001F4E4",
  188 + @"download" : @"\U0001F4E5",
  189 + @"save" : @"\U0001F4BE",
  190 + @"install" : @"\U0000E778",
  191 + @"cloud" : @"\U00002601",
  192 + @"upload-cloud" : @"\U0000E711",
  193 + @"bookmark" : @"\U0001F516",
  194 + @"bookmarks" : @"\U0001F4D1",
  195 + @"open-book" : @"\U0001F4D6",
  196 + @"play" : @"\U000025B6",
  197 + @"paus" : @"\U00002016",
  198 + @"record" : @"\U000025CF",
  199 + @"stop" : @"\U000025A0",
  200 + @"ff" : @"\U000023E9",
  201 + @"fb" : @"\U000023EA",
  202 + @"to-start" : @"\U000023EE",
  203 + @"to-end" : @"\U000023ED",
  204 + @"resize-full" : @"\U0000E744",
  205 + @"resize-small" : @"\U0000E746",
  206 + @"volume" : @"\U000023F7",
  207 + @"sound" : @"\U0001F50A",
  208 + @"mute" : @"\U0001F507",
  209 + @"flow-cascade" : @"\U0001F568",
  210 + @"flow-branch" : @"\U0001F569",
  211 + @"flow-tree" : @"\U0001F56A",
  212 + @"flow-line" : @"\U0001F56B",
  213 + @"flow-parallel" : @"\U0001F56C",
  214 + @"left-bold" : @"\U0000E4AD",
  215 + @"down-bold" : @"\U0000E4B0",
  216 + @"up-bold" : @"\U0000E4AF",
  217 + @"right-bold" : @"\U0000E4AE",
  218 + @"left" : @"\U00002B05",
  219 + @"down" : @"\U00002B07",
  220 + @"up" : @"\U00002B06",
  221 + @"right" : @"\U000027A1",
  222 + @"circled-left" : @"\U0000E759",
  223 + @"circled-down" : @"\U0000E758",
  224 + @"circled-up" : @"\U0000E75B",
  225 + @"circled-right" : @"\U0000E75A",
  226 + @"triangle-left" : @"\U000025C2",
  227 + @"triangle-down" : @"\U000025BE",
  228 + @"triangle-up" : @"\U000025B4",
  229 + @"triangle-right" : @"\U000025B8",
  230 + @"chevron-left" : @"\U0000E75D",
  231 + @"chevron-down" : @"\U0000E75C",
  232 + @"chevron-up" : @"\U0000E75F",
  233 + @"chevron-right" : @"\U0000E75E",
  234 + @"chevron-small-left" : @"\U0000E761",
  235 + @"chevron-small-down" : @"\U0000E760",
  236 + @"chevron-small-up" : @"\U0000E763",
  237 + @"chevron-small-right" : @"\U0000E762",
  238 + @"chevron-thin-left" : @"\U0000E765",
  239 + @"chevron-thin-down" : @"\U0000E764",
  240 + @"chevron-thin-up" : @"\U0000E767",
  241 + @"chevron-thin-right" : @"\U0000E766",
  242 + @"left-thin" : @"\U00002190",
  243 + @"down-thin" : @"\U00002193",
  244 + @"up-thin" : @"\U00002191",
  245 + @"right-thin" : @"\U00002192",
  246 + @"arrow-combo" : @"\U0000E74F",
  247 + @"three-dots" : @"\U000023F6",
  248 + @"two-dots" : @"\U000023F5",
  249 + @"dot" : @"\U000023F4",
  250 + @"cc" : @"\U0001F545",
  251 + @"cc-by" : @"\U0001F546",
  252 + @"cc-nc" : @"\U0001F547",
  253 + @"cc-nc-eu" : @"\U0001F548",
  254 + @"cc-nc-jp" : @"\U0001F549",
  255 + @"cc-sa" : @"\U0001F54A",
  256 + @"cc-nd" : @"\U0001F54B",
  257 + @"cc-pd" : @"\U0001F54C",
  258 + @"cc-zero" : @"\U0001F54D",
  259 + @"cc-share" : @"\U0001F54E",
  260 + @"cc-remix" : @"\U0001F54F",
  261 + @"db-logo" : @"\U0001F5F9",
  262 + @"db-shape" : @"\U0001F5FA"
  263 + };
276 264 }
277 265
278 266 #pragma mark - Icons
112 FontasticIcons/Sources/Classes/FIEntypoSocialIcon.m
@@ -11,74 +11,58 @@
11 11
12 12 @implementation FIEntypoSocialIcon
13 13
14   -#pragma mark - Static fields
15   -
16   -static id _iconsDictionary = nil;
17   -static id _font = nil;
18   -
19   -#pragma mark - Overriden methods
20   -
21 14 + (FIFont *)iconFont {
22   - if (_font == nil) {
23   - _font = [FIFont entypoSocialFont];
24   - }
25   - return _font;
  15 + return [FIFont entypoSocialFont];
26 16 }
27 17
28   -#pragma mark - Icons Dictionary
29   -
30 18 + (NSDictionary *)iconsDictionary {
31   - if (_iconsDictionary == nil) {
32   - _iconsDictionary = [[NSDictionary alloc] initWithDictionary:
33   - @{
34   - @"github":@"\U0000F300",
35   - @"c-github":@"\U0000F301",
36   - @"flickr":@"\U0000F303",
37   - @"c-flickr":@"\U0000F304",
38   - @"vimeo":@"\U0000F306",
39   - @"c-vimeo":@"\U0000F307",
40   - @"twitter":@"\U0000F309",
41   - @"c-twitter":@"\U0000F30A",
42   - @"facebook":@"\U0000F30C",
43   - @"c-facebook":@"\U0000F30D",
44   - @"s-facebook":@"\U0000F30E",
45   - @"google+":@"\U0000F30F",
46   - @"c-google+":@"\U0000F310",
47   - @"pinterest":@"\U0000F312",
48   - @"c-pinterest":@"\U0000F313",
49   - @"tumblr":@"\U0000F315",
50   - @"c-tumblr":@"\U0000F316",
51   - @"linkedin":@"\U0000F318",
52   - @"c-linkedin":@"\U0000F319",
53   - @"dribbble":@"\U0000F31B",
54   - @"c-dribbble":@"\U0000F31C",
55   - @"stumbleupon":@"\U0000F31E",
56   - @"c-stumbleupon":@"\U0000F31F",
57   - @"lastfm":@"\U0000F321",
58   - @"c-lastfm":@"\U0000F322",
59   - @"rdio":@"\U0000F324",
60   - @"c-rdio":@"\U0000F325",
61   - @"spotify":@"\U0000F327",
62   - @"c-spotify":@"\U0000F328",
63   - @"qq":@"\U0000F32A",
64   - @"instagram":@"\U0000F32D",
65   - @"dropbox":@"\U0000F330",
66   - @"evernote":@"\U0000F333",
67   - @"flattr":@"\U0000F336",
68   - @"skype":@"\U0000F339",
69   - @"c-skype":@"\U0000F33A",
70   - @"renren":@"\U0000F33C",
71   - @"sina-weibo":@"\U0000F33F",
72   - @"paypal":@"\U0000F342",
73   - @"picasa":@"\U0000F345",
74   - @"soundcloud":@"\U0000F348",
75   - @"mixi":@"\U0000F34B",
76   - @"behance":@"\U0000F34E",
77   - @"google-circles":@"\U0000F351",
78   - @"vk":@"\U0000F354"
79   - }];
80   - }
81   - return _iconsDictionary;
  19 + return @{
  20 + @"github":@"\U0000F300",
  21 + @"c-github":@"\U0000F301",
  22 + @"flickr":@"\U0000F303",
  23 + @"c-flickr":@"\U0000F304",
  24 + @"vimeo":@"\U0000F306",
  25 + @"c-vimeo":@"\U0000F307",
  26 + @"twitter":@"\U0000F309",
  27 + @"c-twitter":@"\U0000F30A",
  28 + @"facebook":@"\U0000F30C",
  29 + @"c-facebook":@"\U0000F30D",
  30 + @"s-facebook":@"\U0000F30E",
  31 + @"google+":@"\U0000F30F",
  32 + @"c-google+":@"\U0000F310",
  33 + @"pinterest":@"\U0000F312",
  34 + @"c-pinterest":@"\U0000F313",
  35 + @"tumblr":@"\U0000F315",
  36 + @"c-tumblr":@"\U0000F316",
  37 + @"linkedin":@"\U0000F318",
  38 + @"c-linkedin":@"\U0000F319",
  39 + @"dribbble":@"\U0000F31B",
  40 + @"c-dribbble":@"\U0000F31C",
  41 + @"stumbleupon":@"\U0000F31E",
  42 + @"c-stumbleupon":@"\U0000F31F",
  43 + @"lastfm":@"\U0000F321",
  44 + @"c-lastfm":@"\U0000F322",
  45 + @"rdio":@"\U0000F324",
  46 + @"c-rdio":@"\U0000F325",
  47 + @"spotify":@"\U0000F327",
  48 + @"c-spotify":@"\U0000F328",
  49 + @"qq":@"\U0000F32A",
  50 + @"instagram":@"\U0000F32D",
  51 + @"dropbox":@"\U0000F330",
  52 + @"evernote":@"\U0000F333",
  53 + @"flattr":@"\U0000F336",
  54 + @"skype":@"\U0000F339",
  55 + @"c-skype":@"\U0000F33A",
  56 + @"renren":@"\U0000F33C",
  57 + @"sina-weibo":@"\U0000F33F",
  58 + @"paypal":@"\U0000F342",
  59 + @"picasa":@"\U0000F345",
  60 + @"soundcloud":@"\U0000F348",
  61 + @"mixi":@"\U0000F34B",
  62 + @"behance":@"\U0000F34E",
  63 + @"google-circles":@"\U0000F351",
  64 + @"vk":@"\U0000F354"
  65 + };
82 66 }
83 67
84 68 #pragma mark - Icons
13 FontasticIcons/Sources/Classes/FIIcon.m
@@ -10,9 +10,18 @@
10 10 #import "FIUtils.h"
11 11 #import "FIFont.h"
12 12 #import "FIIcon_Private.h"
  13 +#import "FIMetaInfoManager.h"
13 14
14 15 @implementation FIIcon
15 16
  17 ++ (void)initialize {
  18 + FIMetaInfoManager *manager = [FIMetaInfoManager sharedManager];
  19 + [manager registerFont:[self iconFont]
  20 + forClass:self];
  21 + [manager registerIconSet:[self iconsDictionary]
  22 + forClass:self];
  23 +}
  24 +
16 25 - (void)dealloc {
17 26 self.iconString = nil;
18 27 self.iconName = nil;
@@ -28,7 +37,7 @@ + (NSString *)iconKeyForName:(NSString *)aName {
28 37 }
29 38
30 39 + (FIFont *)iconFont {
31   - return nil;
  40 + return [[FIMetaInfoManager sharedManager] fontForClass:self];
32 41 }
33 42
34 43 + (FIIcon *)iconWithName:(NSString *)anIconName {
@@ -39,7 +48,7 @@ + (FIIcon *)iconWithName:(NSString *)anIconName {
39 48 }
40 49
41 50 + (NSDictionary *)iconsDictionary {
42   - return nil;
  51 + return [[FIMetaInfoManager sharedManager] iconSetForClass:self];
43 52 }
44 53
45 54 @end
21 FontasticIcons/Sources/Classes/FIMetaInfoManager.h
... ... @@ -0,0 +1,21 @@
  1 +//
  2 +// FIMetaInfoManager.h
  3 +// FontasticIcons
  4 +//
  5 +// Created by Alex Denisov on 29.10.12.
  6 +// Copyright (c) 2012 Alex Denisov. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +
  11 +@class FIFont;
  12 +
  13 +@interface FIMetaInfoManager : NSObject
  14 +
  15 ++ (FIMetaInfoManager *)sharedManager;
  16 +- (void)registerFont:(FIFont *)aFont forClass:(Class)aClass;
  17 +- (FIFont *)fontForClass:(Class)aClass;
  18 +- (void)registerIconSet:(NSDictionary *)anIcons forClass:(Class)aClass;
  19 +- (NSDictionary *)iconSetForClass:(Class)aClass;
  20 +
  21 +@end
57 FontasticIcons/Sources/Classes/FIMetaInfoManager.m
... ... @@ -0,0 +1,57 @@
  1 +//
  2 +// FIMetaInfoManager.m
  3 +// FontasticIcons
  4 +//
  5 +// Created by Alex Denisov on 29.10.12.
  6 +// Copyright (c) 2012 Alex Denisov. All rights reserved.
  7 +//
  8 +
  9 +#import "FIMetaInfoManager.h"
  10 +
  11 +@implementation FIMetaInfoManager
  12 +{
  13 + NSMutableDictionary *fonts;
  14 + NSMutableDictionary *iconSets;
  15 +}
  16 +
  17 +static id _instance = nil;
  18 +
  19 ++ (FIMetaInfoManager *)sharedManager {
  20 + if (_instance == nil) {
  21 + _instance = [self new];
  22 + }
  23 + return _instance;
  24 +}
  25 +
  26 +- (id)init {
  27 + self = [super init];
  28 + if (self) {
  29 + self->fonts = [NSMutableDictionary new];
  30 + self->iconSets = [NSMutableDictionary new];
  31 + }
  32 + return self;
  33 +}
  34 +
  35 +- (void)registerFont:(FIFont *)aFont forClass:(Class)aClass {
  36 + NSString *key = NSStringFromClass(aClass);
  37 + [self->fonts setValue:aFont
  38 + forKey:key];
  39 +}
  40 +
  41 +- (FIFont *)fontForClass:(Class)aClass {
  42 + NSString *key = NSStringFromClass(aClass);
  43 + return [self->fonts valueForKey:key];
  44 +}
  45 +
  46 +- (void)registerIconSet:(NSDictionary *)anIcons forClass:(Class)aClass {
  47 + NSString *key = NSStringFromClass(aClass);
  48 + [self->iconSets setValue:anIcons
  49 + forKey:key];
  50 +}
  51 +
  52 +- (NSDictionary *)iconSetForClass:(Class)aClass {
  53 + NSString *key = NSStringFromClass(aClass);
  54 + return [self->iconSets valueForKey:key];
  55 +}
  56 +
  57 +@end
19 LICENSE
... ... @@ -0,0 +1,19 @@
  1 +Copyright (c) 2012 Alexey Denisov
  2 +
  3 +Permission is hereby granted, free of charge, to any person obtaining a copy
  4 +of this software and associated documentation files (the "Software"), to deal
  5 +in the Software without restriction, including without limitation the rights
  6 +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7 +copies of the Software, and to permit persons to whom the Software is
  8 +furnished to do so, subject to the following conditions:
  9 +
  10 +The above copyright notice and this permission notice shall be included in
  11 +all copies or substantial portions of the Software.
  12 +
  13 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  14 +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15 +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  16 +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  17 +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  18 +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  19 +THE SOFTWARE.
33 README.markdown
Source Rendered
... ... @@ -0,0 +1,33 @@
  1 +## FontasticIcons
  2 +
  3 +FontasticIcons is an Objective-C wrapper for iconic fonts.
  4 +
  5 +## Installation
  6 +
  7 +### With CocoaPods
  8 +
  9 + pod 'FontasticIcons'
  10 +
  11 +### Manual
  12 +
  13 +Just add sources from `FontasticIcons/Sources` directory to your project.
  14 +
  15 +## Usage
  16 +
  17 + FIIconView *iconView = [[FIIconView alloc] initWithFrame:CGRectMake(0, 0, 50, 50)];
  18 + iconView.backgroundColor = [UIColor clearColor];
  19 + iconView.icon = [FIEntypoIcon leafIcon];
  20 + iconView.padding = 2;
  21 + iconView.iconColor = [UIColor greenColor];
  22 + [self.view addSubview:iconView];
  23 +
  24 +## Available fonts
  25 +
  26 +Right now added only [Entypo](http://www.entypo.com/) font.
  27 +
  28 +## License
  29 +
  30 +Source code distributed under MIT license.
  31 +
  32 +**Note that all fonts have it's own license.**
  33 +

0 comments on commit afae628

Please sign in to comment.
Something went wrong with that request. Please try again.