mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-16 22:48:34 +02:00
36 lines
883 B
Swift
36 lines
883 B
Swift
//
|
|
// Copyright 2021-2024 New Vector Ltd.
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
// Please see LICENSE files in the repository root for full details.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
typealias OnboardingUseCaseViewModelType = StateStoreViewModel<OnboardingUseCaseViewState, OnboardingUseCaseViewAction>
|
|
|
|
class OnboardingUseCaseViewModel: OnboardingUseCaseViewModelType, OnboardingUseCaseViewModelProtocol {
|
|
// MARK: - Properties
|
|
|
|
// MARK: Private
|
|
|
|
// MARK: Public
|
|
|
|
var completion: ((OnboardingUseCaseViewModelResult) -> Void)?
|
|
|
|
// MARK: - Setup
|
|
|
|
init() {
|
|
super.init(initialViewState: OnboardingUseCaseViewState())
|
|
}
|
|
|
|
// MARK: - Public
|
|
|
|
override func process(viewAction: OnboardingUseCaseViewAction) {
|
|
switch viewAction {
|
|
case .answer(let result):
|
|
completion?(result)
|
|
}
|
|
}
|
|
}
|