Skip to content

Instantly share code, notes, and snippets.

@iosdevie
Created May 31, 2021 10: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 iosdevie/5abd78bd04e7506342e98d11bbb1e7b1 to your computer and use it in GitHub Desktop.
Save iosdevie/5abd78bd04e7506342e98d11bbb1e7b1 to your computer and use it in GitHub Desktop.
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