TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jun 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Mikael Konutgan.
A country picker view controller for iOS.
/Planet
folder in your project.First, import the library:
import Planet
Then, create the view controller:
let viewController = CountryPickerViewController()
viewController.delegate = self
after you present it and the user selects a country you will get a callback with the country name, ISO code, and calling code.
func countryPickerViewController(countryPickerViewController: CountryPickerViewController, didSelectCountry country: Country)
showsCallingCodes
.showsCancelButton
to false
.countryCodes
property. See the comment in the example projectgit checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)