Skip to content

Instantly share code, notes, and snippets.

@HelloCore
Created June 22, 2017 17:25
Show Gist options
  • Save HelloCore/c4a0f8219561b926ea7afa2bb6591c9c to your computer and use it in GitHub Desktop.
Save HelloCore/c4a0f8219561b926ea7afa2bb6591c9c to your computer and use it in GitHub Desktop.
func loginFailure() {
username.text = ""
password.text = ""
loginBtn.isEnabled = (username.length > 4) && (password.length > 4)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment