Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
guard let username = usernameTF.text, username.characters.count >= 6 else {
// wrong username format
return
}
guard let password = passwordTF.text, password.characters.count >= 6 else {
// wrong password format
return
}
// do register user here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment