ADCountryPicker icon indicating copy to clipboard operation
ADCountryPicker copied to clipboard

Issue with Current Country

Open iceparticle-ios opened this issue 5 years ago • 5 comments

Failed to get current location details and while searching current country showing twice in a list

iceparticle-ios avatar Dec 16 '19 09:12 iceparticle-ios

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.

carlosmellado avatar Mar 27 '20 11:03 carlosmellado

Sent pull request: https://github.com/AmilaDiman/ADCountryPicker/pull/12

carlosmellado avatar Mar 27 '20 11:03 carlosmellado

I have the same issue, any solution for it/

SAYEDALISINA93 avatar May 25 '21 10:05 SAYEDALISINA93

I also facing this issue, it show nil for default country.

QaziAmmar avatar Nov 12 '21 13:11 QaziAmmar

same here thank you for the code

jis248 avatar Mar 22 '22 07:03 jis248