Skip to content

Instantly share code, notes, and snippets.

@zafarivaev
Created January 18, 2022 18:34
Show Gist options
  • Save zafarivaev/4191e29b5832cc2d49d3c2eed2df195e to your computer and use it in GitHub Desktop.
Save zafarivaev/4191e29b5832cc2d49d3c2eed2df195e to your computer and use it in GitHub Desktop.
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