Skip to content

Instantly share code, notes, and snippets.

@stevencurtis
Created June 12, 2020 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevencurtis/e8b239e0de6831bd401abd23f6499e46 to your computer and use it in GitHub Desktop.
Save stevencurtis/e8b239e0de6831bd401abd23f6499e46 to your computer and use it in GitHub Desktop.
factoryprotocol
protocol Factory {
var networkManager: HTTPManagerProtocol { get }
func makeInitialViewController(coordinator: ProjectCoordinator) -> InitialViewController
func makeInitialViewModel(coordinator: RootCoordinator) -> InitialViewModel
func makeDetailView() -> DetailView
func makeDetailViewModel(coordinator: RootCoordinator) -> DetailViewModel
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment