I am working on an iOS app where I require users to input their username without special characters.
I need assistance creating a function to validate a text field to accept only letters, numbers, and underscore. And when implement it into the signup Button action, I want to call the function and add an if case for the validation.
Can someone tell me what to do? I have tried other methods online but they seem to be outdated and nothing worked for me.