Created
May 31, 2021 10:19
-
-
Save iosdevie/5abd78bd04e7506342e98d11bbb1e7b1 to your computer and use it in GitHub Desktop.
This file contains 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
MyModel.apply{ | |
switch result { | |
case .success(let model): | |
currentModel = model | |
case .failure(let error): | |
handleFailure(for: error) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment