Created
January 19, 2022 16:42
-
-
Save zafarivaev/826822fd84f170c34ebab6eb831403cc to your computer and use it in GitHub Desktop.
This file contains hidden or 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 UIKit | |
import Combine | |
... | |
enum State: String { | |
case initial = "Initial" | |
case loading = "Loading" | |
case loadedSuccessfully = "Success" | |
case loadingFailed = "Failure" | |
} | |
class ViewController: UIViewController { | |
... | |
@Published var state: State = .initial | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment