Skip to content

Beautiful flag icons for usage in apps and on the web.

License

Notifications You must be signed in to change notification settings

ionToderasco/FlagKit

 
 

Repository files navigation

FlagKit SE

Beautiful flag icons for usage in apps and on the web.

Installation (iOS/OSX)

FlagKit.xcassets

Just add FlagKit.xcassets to your target.

Carthage

Add FlagKit to your Cartfile:

github "madebybowtie/FlagKit"

CocoaPods

Add FlagKit to your Podfile:

pod 'FlagKit'

Usage (iOS/OSX)

For OSX, just replace UIImage with NSImage below

Get an icon for your locale or a world flag:

UIImage(flagImageWithCountryCode: NSLocale.autoupdatingCurrentLocale().objectForKey(NSLocaleCountryCode) as! String)
UIImage(flagImageForSpecialFlag: .World)
[[UIImage alloc] initWithFlagImageWithCountryCode:[[NSLocale autoupdatingCurrentLocale] objectForKey:NSLocaleCountryCode]];

If you are just adding FlagKit.xcassets to you target, you can simply use the standard UIImage/NSImage methods:

UIImage(named: NSLocale.autoupdatingCurrentLocale().objectForKey(NSLocaleCountryCode) as! String)
[UIImage imageNamed:[[NSLocale autoupdatingCurrentLocale] objectForKey:NSLocaleCountryCode]];

Sketch

To be able to open the Sketch-file make sure you're running the latest version or the beta version Sketch Beta.

More Info

Have a question? Please open an issue!

Reference

This set currently includes the 267 flags below:

Flag Code Region
CH2 CH2 Switzerland (Square)
EU EU European Union
GB-ENG GB-ENG England
GB-NIR GB-NIR Northern Ireland
GB-SCT GB-SCT Scotland
GB-WLS GB-WLS Wales
GB-ZET GB-ZET Shetland Islands
LGBT LGBT Pride
SAMI SAMI Sami
SE-JAM SE-JAM Jämtland
SE-SKA SE-SKA Skåne
SE-VAS SE-VAS West Swedish
SEFI SEFI Swedish Finnish combo
TORN TORN Torne Valley
US-CA US-CA California
WW-AFR WW-AFR Africa
WW-ASI WW-ASI Asia
WW-AUS WW-AUS Australia
WW-EUR WW-EUR Europe
WW-NAM WW-NAM North America
WW-SAM WW-SAM South America
WW WW World
Flag Code Country
AD AD Andorra
AE AE United Arab Emirates
AF AF Afghanistan
AG AG Antigua & Barbuda
AI AI Anguilla
AL AL Albania
AM AM Armenia
AO AO Angola
AR AR Argentina
AS AS American Samoa
AT AT Austria
AU AU Australia
AW AW Aruba
AX AX Åland Islands
AZ AZ Azerbaijan
BA BA Bosnia & Herzegovina
BB BB Barbados
BD BD Bangladesh
BE BE Belgium
BF BF Burkina Faso
BG BG Bulgaria
BH BH Bahrain
BI BI Burundi
BJ BJ Benin
BL BL St. Barthélemy
BM BM Bermuda
BN BN Brunei
BO BO Bolivia
BR BR Brazil
BS BS Bahamas
BT BT Bhutan
BV BV Bouvet Island
BW BW Botswana
BY BY Belarus
BZ BZ Belize
CA CA Canada
CC CC Cocos (Keeling) Islands
CD CD Congo - Kinshasa
CF CF Central African Republic
CG CG Congo - Brazzaville
CH CH Switzerland
CI CI Côte d’Ivoire
CK CK Cook Islands
CL CL Chile
CM CM Cameroon
CN CN China
CO CO Colombia
CR CR Costa Rica
CU CU Cuba
CV CV Cape Verde
CW CW Curaçao
CX CX Christmas Island
CY CY Cyprus
CZ CZ Czech Republic
DE DE Germany
DJ DJ Djibouti
DK DK Denmark
DM DM Dominica
DO DO Dominican Republic
DZ DZ Algeria
EC EC Ecuador
EE EE Estonia
EG EG Egypt
ER ER Eritrea
ES ES Spain
ET ET Ethiopia
FI FI Finland
FJ FJ Fiji
FK FK Falkland Islands
FM FM Micronesia
FO FO Faroe Islands
FR FR France
GA GA Gabon
GB GB United Kingdom
GD GD Grenada
GE GE Georgia
GF GF French Guiana
GG GG Guernsey
GH GH Ghana
GI GI Gibraltar
GL GL Greenland
GM GM Gambia
GN GN Guinea
GP GP Guadeloupe
GQ GQ Equatorial Guinea
GR GR Greece
GS GS So. Georgia & So. Sandwich Isl.
GT GT Guatemala
GU GU Guam
GW GW Guinea-Bissau
GY GY Guyana
HK HK Hong Kong SAR China
HM HM Heard & McDonald Islands
HN HN Honduras
HR HR Croatia
HT HT Haiti
HU HU Hungary
ID ID Indonesia
IE IE Ireland
IL IL Israel
IM IM Isle of Man
IN IN India
IO IO British Indian Ocean Territory
IQ IQ Iraq
IR IR Iran
IS IS Iceland
IT IT Italy
JE JE Jersey
JM JM Jamaica
JO JO Jordan
JP JP Japan
KE KE Kenya
KG KG Kyrgyzstan
KH KH Cambodia
KI KI Kiribati
KM KM Comoros
KN KN St. Kitts & Nevis
KP KP North Korea
KR KR South Korea
KW KW Kuwait
KY KY Cayman Islands
KZ KZ Kazakhstan
LA LA Laos
LB LB Lebanon
LC LC St. Lucia
LI LI Liechtenstein
LK LK Sri Lanka
LR LR Liberia
LS LS Lesotho
LT LT Lithuania
LU LU Luxembourg
LV LV Latvia
LY LY Libya
MA MA Morocco
MC MC Monaco
MD MD Moldova
ME ME Montenegro
MG MG Madagascar
MH MH Marshall Islands
MK MK Macedonia
ML ML Mali
MM MM Myanmar (Burma)
MN MN Mongolia
MO MO Macau SAR China
MP MP Northern Mariana Islands
MQ MQ Martinique
MR MR Mauritania
MS MS Montserrat
MT MT Malta
MU MU Mauritius
MV MV Maldives
MW MW Malawi
MX MX Mexico
MY MY Malaysia
MZ MZ Mozambique
NA NA Namibia
NC NC New Caledonia
NE NE Niger
NF NF Norfolk Island
NG NG Nigeria
NI NI Nicaragua
NL NL Netherlands
NO NO Norway
NP NP Nepal
NR NR Nauru
NU NU Niue
NZ NZ New Zealand
OM OM Oman
PA PA Panama
PE PE Peru
PF PF French Polynesia
PG PG Papua New Guinea
PH PH Philippines
PK PK Pakistan
PL PL Poland
PM PM St. Pierre & Miquelon
PN PN Pitcairn Islands
PR PR Puerto Rico
PS PS Palestinian Territories
PT PT Portugal
PW PW Palau
PY PY Paraguay
QA QA Qatar
RE RE Réunion
RO RO Romania
RS RS Serbia
RU RU Russia
RW RW Rwanda
SA SA Saudi Arabia
SB SB Solomon Islands
SC SC Seychelles
SD SD Sudan
SE SE Sweden
SG SG Singapore
SI SI Slovenia
SJ SJ Svalbard & Jan Mayen
SK SK Slovakia
SL SL Sierra Leone
SM SM San Marino
SN SN Senegal
SO SO Somalia
SR SR Suriname
SS SS South Sudan
ST ST São Tomé & Príncipe
SV SV El Salvador
SX SX Sint Maarten
SY SY Syria
SZ SZ Swaziland
TC TC Turks & Caicos Islands
TD TD Chad
TF TF French Southern Territories
TG TG Togo
TH TH Thailand
TJ TJ Tajikistan
TK TK Tokelau
TL TL Timor-Leste
TM TM Turkmenistan
TN TN Tunisia
TO TO Tonga
TR TR Turkey
TT TT Trinidad & Tobago
TV TV Tuvalu
TW TW Taiwan
TZ TZ Tanzania
UA UA Ukraine
UG UG Uganda
UM UM U.S. Outlying Islands
US US United States
UY UY Uruguay
UZ UZ Uzbekistan
VA VA Vatican City
VC VC St. Vincent & Grenadines
VE VE Venezuela
VG VG British Virgin Islands
VI VI U.S. Virgin Islands
VN VN Vietnam
VU VU Vanuatu
WF WF Wallis & Futuna
WS WS Samoa
XK XK Kosovo
YE YE Yemen
YT YT Mayotte
ZA ZA South Africa
ZM ZM Zambia
ZW ZW Zimbabwe

License

FlagKit is released under the MIT license. See LICENSE.

About

Beautiful flag icons for usage in apps and on the web.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 67.8%
  • Swift 27.1%
  • Objective-C 5.1%