Created
February 16, 2020 20:18
-
-
Save yzhong52/d8dd8f5679f61792759ad34fb549f07f to your computer and use it in GitHub Desktop.
Building a Client App From Scratch - LoadState
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
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