Created
June 13, 2018 22:01
-
-
Save ARamy23/c93fedcedb731d789616d93cdd666e63 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
UserRouter.login(email: "[email protected]", password: "test12345").send(SwiftCairoUser.self) {[weak self] (response) in | |
switch response { | |
case .failure(let error): | |
// TODO: - Handle error as you want, printing isn't handling. | |
print(error) | |
case .success(let value): | |
self?.textView.text = value.apiToken | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment