FormTextField icon indicating copy to clipboard operation
FormTextField copied to clipboard

Chinese character input issue

Open ladmini opened this issue 4 years ago • 1 comments

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

ladmini avatar Jul 24 '20 11:07 ladmini

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.

3lvis avatar Oct 04 '20 08:10 3lvis