A swift Controller Provides country name, country flag and calling codes

DialCountries

DialCountries is a swift Controller. Provides country name, ISO 3166 country codes, country flag, and calling codes.

Features

  • [ ] Support multiple languages.
  • [ ] Support Dark mode.
  • [ ] Search using many keywords (ISO2, Dial code, Country name).

Screenshots

English Japanese

Using

  • Show DialCountriesController
let controller = DialCountriesController(locale: Locale(identifier: "ja"))
    controller.delegate = self
    controller.show(vc: self)
  • Delegate for selection
extension ViewController: DialCountriesControllerDelegate {
 func didSelected(with country: Country) {
  print(country)
 }
}
  • Get Current country
Country.getCurrentCountry()

Requirements

  • iOS 12.0+
  • Swift 5.0+
  • Xcode 10.0+

Installation

DialCountries is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'DialCountries'

Author

Ahmad Almasri, ahmed.almasri@ymail.com

GitHub