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

Chinese character input issue #50

Open
ladmini opened this issue Jul 24, 2020 · 1 comment
Open

Chinese character input issue #50

ladmini opened this issue Jul 24, 2020 · 1 comment

Comments

@ladmini
Copy link

ladmini commented Jul 24, 2020

I want to limit the length of characters in the input box.
My main code is as follows. However, when inputting Chinese characters, only the first character can be input into Chinese. There is no way to input Chinese later. I tried to record a video. Can you tell me what the problem is?
System Ver. iOS 13

var validation = Validation()
validation.minimumLength = minLength
validation.maximumLength = maxLength
titleTextField.inputValidator = InputValidator(validation: validation)

QQ20200724-191025.mp4.zip

@3lvis
Copy link
Owner

3lvis commented Oct 4, 2020

Hi @ladmini, I'm sorry for the late response. I haven't faced your problem before but only thing I can imagine is that the InputValidator makes too many assumptions regarding the locale or the alphabet being used. One way would be to expand it to inject the used one.

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

2 participants