CHIOTPField icon indicating copy to clipboard operation
CHIOTPField copied to clipboard

Doesn't clear

Open Salarsoleimani opened this issue 5 years ago • 3 comments

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

Salarsoleimani avatar Dec 04 '20 03:12 Salarsoleimani

Push.

d0hnj0e avatar Dec 20 '20 21:12 d0hnj0e

Try this.

CHIOTPField.text = .none

    for label in CHIOTPField.labels {
        label.text = .none
    }

MahmoudAbdelshafi avatar Feb 02 '21 15:02 MahmoudAbdelshafi

It works:

codeTextField.text = String(repeating: " ", count: codeTextField.numberOfDigits)
codeTextField.text = ""

JAGUAR108 avatar Mar 16 '22 09:03 JAGUAR108