Skip to content

Instantly share code, notes, and snippets.

@yzhong52
Created February 16, 2020 20:18
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 yzhong52/d8dd8f5679f61792759ad34fb549f07f to your computer and use it in GitHub Desktop.
Save yzhong52/d8dd8f5679f61792759ad34fb549f07f to your computer and use it in GitHub Desktop.
Building a Client App From Scratch - LoadState
import Foundation
enum LoadState<T> {
case loading
case updating
case loaded(response: T)
case failed(error: Error)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment