CHIOTPField
CHIOTPField copied to clipboard
Doesn't clear
Hi, Thanks for the beautiful textfield you made. I have an issue: when I use the
CHIOTPField.text = ""
or
CHIOTPField.text = nil
it does not clear the textfield properly.
thanks
Push.
Try this.
CHIOTPField.text = .none
for label in CHIOTPField.labels {
label.text = .none
}
It works:
codeTextField.text = String(repeating: " ", count: codeTextField.numberOfDigits)
codeTextField.text = ""