Skip to content

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

License

Notifications You must be signed in to change notification settings

ahmedAlmasri/DialCountries

Repository files navigation

DialCountries

CI Status Version License Platform

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, [email protected]

License

DialCountries is available under the MIT license. See the LICENSE file for more info.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published