Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmedalmasri/dialcountries
DialCountries is a swift Controller. Provides country name, ISO 3166 country codes, country flag, and calling codes
https://github.com/ahmedalmasri/dialcountries
country-codes country-flags country-list country-names country-picker ios ios-swift swift xcode
Last synced: about 1 month ago
JSON representation
DialCountries is a swift Controller. Provides country name, ISO 3166 country codes, country flag, and calling codes
- Host: GitHub
- URL: https://github.com/ahmedalmasri/dialcountries
- Owner: ahmedAlmasri
- License: mit
- Created: 2020-06-07T17:47:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-01T12:03:29.000Z (over 4 years ago)
- Last Synced: 2024-11-15T16:42:43.042Z (about 1 month ago)
- Topics: country-codes, country-flags, country-list, country-names, country-picker, ios, ios-swift, swift, xcode
- Language: Swift
- Homepage:
- Size: 15.7 MB
- Stars: 27
- Watchers: 4
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DialCountries
[![CI Status](https://img.shields.io/travis/[email protected]/DialCountries.svg?style=flat)](https://travis-ci.org/[email protected]/DialCountries)
[![Version](https://img.shields.io/cocoapods/v/DialCountries.svg?style=flat)](https://cocoapods.org/pods/DialCountries)
[![License](https://img.shields.io/cocoapods/l/DialCountries.svg?style=flat)](https://cocoapods.org/pods/DialCountries)
[![Platform](https://img.shields.io/cocoapods/p/DialCountries.svg?style=flat)](https://cocoapods.org/pods/DialCountries)## Features
- [ ] Support multiple languages.
- [ ] Support Dark mode.
- [ ] Search using many keywords (ISO2, Dial code, Country name).## Screenshots
| English | Japanese |
|---|---|
| | |## Using
* Show `DialCountriesController`
```swift
let controller = DialCountriesController(locale: Locale(identifier: "ja"))
controller.delegate = self
controller.show(vc: self)
```* Delegate for selection
```swift
extension ViewController: DialCountriesControllerDelegate {
func didSelected(with country: Country) {
print(country)
}
}
```* Get Current country
```swift
Country.getCurrentCountry()
```## Requirements
* iOS 12.0+
* Swift 5.0+
* Xcode 10.0+## Installation
DialCountries is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'DialCountries'
```## Author
Ahmad Almasri, [email protected]
## License
DialCountries is available under the MIT license. See the LICENSE file for more info.