ahmedAlmasri / DialCountries

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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, ahmed.almasri@ymail.com

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

License:MIT License


Languages

Language:Swift 74.1%Language:Ruby 25.9%