I'm looking for way to make username text field for not accepting whitespace or special characters such as "/><,=+-|}{[])(*&^%$#!@~.. etc" for swift 3.0
I searched on internet anything that if I insert a username with whitespace or special characters to delete it or replace it.
Any help ?