Last active
December 12, 2021 10:33
-
-
Save michzio/8d48ee0d4e3af64bc1928905a1e3af2a to your computer and use it in GitHub Desktop.
SwiftUI MVVM architecture - ViewModel protocol
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
public protocol WordsetCategoriesViewModelInput { | |
func syncWordsetCategories() | |
} | |
public protocol WordsetCategoriesViewModelOutput: ObservableObject { | |
var error: Error? { get set } | |
var isLoading: Bool { get set } | |
} | |
public protocol WordsetCategoriesViewModelProtocol: WordsetCategoriesViewModelOutput, WordsetCategoriesViewModelInput { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment