My app uses SMS authorisation. For the UITextField for entering pin code I set
UITextField
_textField.textContentType = .oneTimeCode
so that