Skip to content

Custom country objects with country code, dial code, and flag emoji to use for pickers. Built with Swift 3 on iOS 10.3. Demo project utilizes a table view with search bar.

License

Notifications You must be signed in to change notification settings

aj-fermin/AFCountries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AFCountries

Country database with country code, dial code, and flag emoji, which you can use for pickers and table views in iOS projects.

Data scraped from http://country.io . As this was made for the purpose of obtaining dial codes, countries with blank codes were removed from the list.

Supported SDK Version

  • Built with Swift on iOS 10.3

Installation and Usage

To install, just drag AFCountries.framework into your project.

Access all countries with AFCountry.allCountriesWithCodes()

AFCountry has these properties:

  • countryName (e.g. "Philippines")
  • countryCode (e.g. "PH")
  • dialCode (e.g. "63")
  • flagEmoji (e.g. "🇵🇭")

Search for a country by country code: AFCountry.countryWithCode("PH")

Demo

https://appetize.io/app/4evx0vd582jj3k4674973tq6ac?device=iphone7&scale=50&orientation=portrait&osVersion=10.3&deviceColor=black

About

Custom country objects with country code, dial code, and flag emoji to use for pickers. Built with Swift 3 on iOS 10.3. Demo project utilizes a table view with search bar.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published