aj-fermin / AFCountries

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:Objective-C 56.2%Language:Swift 43.8%