Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
  2. guard let text = textField.text, text.count < 4 else { return false }
  3. return true
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement