mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 03:06:37 +00:00
664e87fe87
* Switch license file to AGPL * Update file copyright headers * Update the default project file header
36 lines
1.1 KiB
Swift
36 lines
1.1 KiB
Swift
//
|
|
// Copyright 2022-2024 New Vector Ltd.
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
// Please see LICENSE in the repository root for full details.
|
|
//
|
|
|
|
import Combine
|
|
import SwiftUI
|
|
|
|
struct BlockedUsersScreenCoordinatorParameters {
|
|
let hideProfiles: Bool
|
|
let clientProxy: ClientProxyProtocol
|
|
let mediaProvider: MediaProviderProtocol
|
|
let userIndicatorController: UserIndicatorControllerProtocol
|
|
}
|
|
|
|
final class BlockedUsersScreenCoordinator: CoordinatorProtocol {
|
|
private let viewModel: BlockedUsersScreenViewModelProtocol
|
|
|
|
init(parameters: BlockedUsersScreenCoordinatorParameters) {
|
|
viewModel = BlockedUsersScreenViewModel(hideProfiles: parameters.hideProfiles,
|
|
clientProxy: parameters.clientProxy,
|
|
mediaProvider: parameters.mediaProvider,
|
|
userIndicatorController: parameters.userIndicatorController)
|
|
}
|
|
|
|
func stop() {
|
|
viewModel.stop()
|
|
}
|
|
|
|
func toPresentable() -> AnyView {
|
|
AnyView(BlockedUsersScreen(context: viewModel.context))
|
|
}
|
|
}
|