Skip to content

Instantly share code, notes, and snippets.

@vedon
Created June 5, 2020 04:19
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/3b4898ac9d407ff915eb78c0c2a4a05d to your computer and use it in GitHub Desktop.
Save vedon/3b4898ac9d407ff915eb78c0c2a4a05d to your computer and use it in GitHub Desktop.
class LoginViewController {
private let userSession: UserSession
init(_ userSession: UserSession = UserSession()) {
self.userSession = userSession
}
}
let vc = LoginViewController()
let vc = LoginViewController(userSession)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment