Skip to content

Instantly share code, notes, and snippets.

@vedon
Last active June 5, 2020 03:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vedon/682517f288520d469f5c26c6d2b875ec to your computer and use it in GitHub Desktop.
Save vedon/682517f288520d469f5c26c6d2b875ec to your computer and use it in GitHub Desktop.
typealias Login = (_ name: String, _ password: String) -> Void
class LoginViewController {
func login(_ login: Login, name: String, password: String) {
...
login(name, password)
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment