-
Notifications
You must be signed in to change notification settings - Fork 87
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
Format elements like Phone Number #54
Comments
Can you capture the textfield delegate to so something like is posted in stackoverflow for phone number formatting?
} func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool { "" => "" |
I can't remember. I think it's difficult to do live-updates with the UIKit textfield as the user types in text. Phone numbers are tricky and localized. Maybe UIKit textfield already has support for phone number formatting. Ideas to try out:
|
@neoneye Thanks.. will try and report back |
Is there a way to add formatting rules for fields like phone numbers to be (xxx) xxx-xxxx ?
The text was updated successfully, but these errors were encountered: