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

Mobile Phone Placeholder #109

Open
Sydney-o9 opened this issue Jul 24, 2019 · 2 comments
Open

Mobile Phone Placeholder #109

Sydney-o9 opened this issue Jul 24, 2019 · 2 comments

Comments

@Sydney-o9
Copy link

At the moment the placeholder shows a landline phone number, is it possible to use a mobile phone number placeholder?

@grifas
Copy link
Contributor

grifas commented Jul 24, 2019

FlagPhoneNumber uses libPhoneNumber lib and what I know about it now, it's not possible to use a mobile phone number.

@grifas grifas closed this as completed Jul 24, 2019
@Sydney-o9
Copy link
Author

Sydney-o9 commented Jul 25, 2019

Yes you can @grifas - see NBPhoneNumberUtil.

So it's possible to do the following in FPNTextField

let example = try phoneUtil.getExampleNumber(forType: countryCode.rawValue, type: NBEPhoneNumberType.MOBILE)

Edit. Maybe we could have a setExampleNumberType(_ type:NBEPhoneNumberType) method

phoneNumberTextField.setExampleNumberType(NBEPhoneNumberType.MOBILE)

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

No branches or pull requests

2 participants