Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Current Country #11

Open
iceparticle-ios opened this issue Dec 16, 2019 · 5 comments
Open

Issue with Current Country #11

iceparticle-ios opened this issue Dec 16, 2019 · 5 comments

Comments

@iceparticle-ios
Copy link

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

@carlosmellado
Copy link

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
Copy link

Sent pull request: #12

@SAYEDALISINA93
Copy link

I have the same issue, any solution for it/

@QaziAmmar
Copy link

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

@jis248
Copy link

jis248 commented Mar 22, 2022

same here thank you for the code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants