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 year 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-01T12:03:29.000Z (almost 6 years ago)
- Last Synced: 2024-11-15T16:42:43.042Z (over 1 year 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
[](https://travis-ci.org/ahmed.almasri@ymail.com/DialCountries)
[](https://cocoapods.org/pods/DialCountries)
[](https://cocoapods.org/pods/DialCountries)
[](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, ahmed.almasri@ymail.com
## License
DialCountries is available under the MIT license. See the LICENSE file for more info.