v1.0.7
FlagKit 
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 flagImageWithCountryCode:[[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 206 flags below:
| Flag | Code | Region |
|---|---|---|
![]() |
EU | European Union |
![]() |
WW | World |
![]() |
CNA | North America |
![]() |
CSA | South America |
![]() |
CEU | Europe |
![]() |
CAF | Africa |
![]() |
CAS | Asia |
![]() |
COC | Oceania |
License
FlagKit is released under the MIT license. See LICENSE.
Languages
Swift
93%
Objective-C
4%
Ruby
3%











































































































































































































