Last active
October 6, 2021 21:29
-
-
Save bigMOTOR/8c3b0d47468b1e96b95daf8b25dfc863 to your computer and use it in GitHub Desktop.
2021-10-02_Article_ComposableContextsArchitecture_1.swift
This file contains 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
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