Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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