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
Fixed symbols in the mask #6
Comments
Hey @razalur |
any updates ? |
@TikhonovAlexander hey there. @razalur might be interested, too. Thanks for reminding me about this feature request. We actually had a short talk with two evangelists from Apple about having a non-editable text inside the text field. TL;DR: We are not going to support this feature. It doesn't violate HIG directly though it is a bad idea to restrict user control over the app and take over the decision-making. Native text fields do not behave like that, and iOS SDK already has a component for a static text — a You can't disable or greyout a native keyboard Backspace button, and non-clearable symbols will bring confusion, as the end user won't be able to determine whether it is a designed behaviour or a bug. "Why exactly my Backspace button doesn't work?" — and you can't give a clear hint. From our library design perspective, it is obvious that the developer might put a "fixed" symbol in the middle of the line. But what do you expect to happen when the user starts to delete characters from the beginning of the line? Even more questions arise when you decide to incorporate a The only thing I could help you with is an advice to think through the goals you are aiming to achieve. |
It will be great to have the ability of fixed symbols using.
For example I need the mask for the phone number: +7 (111) 111-11-11
So according to documentation I can to create mask for this case: +7([000])[000]-[00]-[00]
And that's alright. But I need the user can't clear fist two symbols (+7). So every time "+7" have to be always visible in the text field.
The text was updated successfully, but these errors were encountered: