ADCountryPicker
ADCountryPicker copied to clipboard
Issue with Current Country
Failed to get current location details and while searching current country showing twice in a list
This is due to following code present more than once.
let countries = self.getCountry(countryCode)
if countries.count == 1 {
//something
}
else {
return nil
}
When you're selecting the country also presented on the default section, then, countries.count is 2, and always will return nil.
Sent pull request: https://github.com/AmilaDiman/ADCountryPicker/pull/12
I have the same issue, any solution for it/
I also facing this issue, it show nil for default country.
same here thank you for the code