Created
January 18, 2022 18:34
-
-
Save zafarivaev/4191e29b5832cc2d49d3c2eed2df195e 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 CustomError: Error { | |
case dataCorrupted | |
case serverFailure | |
} | |
class ViewController: UIViewController { | |
... | |
private var cancellables = Set<AnyCancellable>() | |
override func viewDidLoad() { | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment