👉 Subscribe :
/ @letslearnswift7692
Source Code:
https://github.com/cagdaseksi/letslea...
The first will always show the clear button, and the second will only show it while the user is editing the text.
textField.clearButtonMode = .always
textField.clearButtonMode = .whileEditing
swift,uitextfield,swift 4,textfields,learn,swift 3,clear button in textbox,keyboard hides textfield,swift tutorial,how to validate uitextfield swift,swift3,allow only digits in uitextfield swift,learn swift,empty uitextfield validation swift,allow only alphabets in uitextfield swift,tutorial,done button,add done and clear button on keyboard