mirror of
https://github.com/metabolist/metatext.git
synced 2024-06-02 13:40:13 +00:00
20 lines
601 B
Swift
20 lines
601 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import Foundation
|
|
import ServiceLayer
|
|
|
|
public final class ExploreViewModel: ObservableObject {
|
|
public let searchViewModel: SearchViewModel
|
|
public let identityContext: IdentityContext
|
|
|
|
private let exploreService: ExploreService
|
|
|
|
init(service: ExploreService, identityContext: IdentityContext) {
|
|
exploreService = service
|
|
self.identityContext = identityContext
|
|
searchViewModel = SearchViewModel(
|
|
searchService: exploreService.searchService(),
|
|
identityContext: identityContext)
|
|
}
|
|
}
|