Skip to content

Instantly share code, notes, and snippets.

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 JohnSundell/25368861c638eee7989c9d7d9100aaaf to your computer and use it in GitHub Desktop.
Save JohnSundell/25368861c638eee7989c9d7d9100aaaf to your computer and use it in GitHub Desktop.
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
loadModel { result in
switch result {
case .success(let model):
render(model)
case .error(let error):
render(error)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment