mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
24 lines
604 B
Swift
24 lines
604 B
Swift
import Services
|
|
import SwiftUI
|
|
import Views
|
|
|
|
extension PrimaryContentViewModel {
|
|
static func make(services: Services) -> PrimaryContentViewModel {
|
|
let viewModel = PrimaryContentViewModel(
|
|
homeFeedViewModel: HomeFeedViewModel.make(services: services),
|
|
profileContainerViewModel: ProfileContainerViewModel.make(services: services)
|
|
)
|
|
viewModel.bind(services: services)
|
|
return viewModel
|
|
}
|
|
|
|
func bind(services _: Services) {
|
|
performActionSubject.sink { action in
|
|
switch action {
|
|
case .nothing:
|
|
break
|
|
}
|
|
}
|
|
.store(in: &subscriptions)
|
|
}
|
|
}
|