44019fdb1b9e45d277bd77b83a3ea9b4d48d1ad8
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 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 256 flags below:
License
FlagKit is released under the MIT license. See LICENSE.
Languages
Swift
93%
Objective-C
4%
Ruby
3%






























































































































































































































































