Created
June 4, 2020 15:30
-
-
Save vedon/be91561c59f909ef32f76dc4c5d3bbe9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class UserSession { | |
static let shared: UserSession | |
} | |
Class LoginViewController { | |
func login(_ name: String, password: String) { | |
... | |
UserSession.shared.login(name, password) | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment