Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bigMOTOR/8c3b0d47468b1e96b95daf8b25dfc863 to your computer and use it in GitHub Desktop.
Save bigMOTOR/8c3b0d47468b1e96b95daf8b25dfc863 to your computer and use it in GitHub Desktop.
2021-10-02_Article_ComposableContextsArchitecture_1.swift
protocol ObserveUserNameUseCase {
var userName: Observable<String> { get }
}
protocol SignOutUseCase {
func signOut()
}
struct UserScreenViewModel {
typealias UseCases = ObserveUserNameUseCase & SignOutUseCase
...
init(useCases: UseCases) {
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment