Last active
June 4, 2020 20:05
-
-
Save Yoloabdo/a4dc89635b33df047c989148069595c8 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
| func userDidTapLogin(_ sender: UIButton) { | |
| sender.startAnimating() | |
| let command = LoginCommandsFactory.getLoginCommand(id, password: password) {[weak self] (response) in | |
| self?.handleServerLogin(response) | |
| sender.stopAnimating() | |
| } | |
| do { | |
| try command.execute() | |
| }catch{ | |
| sender.stopAnimating() | |
| showError(error) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment