tkach/PinCodeTextField

iOS 11 keyboard suggestion problem

Closed this issue · 2 comments

in iOS 11 can't type any character from first row of keyboard ( see attachment img )

it work if i hide suggestion list above keyboard in settings.

how hide suggestion list programmatically?

thank you
image-1

tkach commented

Hi, thanks for opening the issue.
Fixed it, please take the updated version. You can regulate suggestion list enable/disable by setting autocorrectionType property, however now suggestions are disabled by default.

/// Longer answer
It may be controlled by setting pinCodeTextField.autocorrectionType = .no.
This will disable suggestion list just for the current control.
This property comes from UITextInputTraits protocol and therefore works for any of its descendants (such as UITextField, UITextView).
However problem were that I forgot to add some of UITextInputTraits properties (including autocorrectionType) to PinCodeTextField.

Thanks a lot