mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Add a state machine to the AuthenticationFlowCoordinator. (#4103)
This commit is contained in:
+3
-3
@@ -10,15 +10,15 @@ import SwiftUI
|
||||
// MARK: - Coordinator
|
||||
|
||||
enum AuthenticationStartScreenCoordinatorAction {
|
||||
case loginManually
|
||||
case loginWithQR
|
||||
case loginManually
|
||||
case register
|
||||
case reportProblem
|
||||
}
|
||||
|
||||
enum AuthenticationStartScreenViewModelAction {
|
||||
case loginManually
|
||||
case loginWithQR
|
||||
case loginManually
|
||||
case register
|
||||
case reportProblem
|
||||
}
|
||||
@@ -30,8 +30,8 @@ struct AuthenticationStartScreenViewState: BindableState {
|
||||
}
|
||||
|
||||
enum AuthenticationStartScreenViewAction {
|
||||
case loginManually
|
||||
case loginWithQR
|
||||
case loginManually
|
||||
case register
|
||||
case reportProblem
|
||||
}
|
||||
|
||||
+2
-2
@@ -25,10 +25,10 @@ class AuthenticationStartScreenViewModel: AuthenticationStartScreenViewModelType
|
||||
|
||||
override func process(viewAction: AuthenticationStartScreenViewAction) {
|
||||
switch viewAction {
|
||||
case .loginManually:
|
||||
actionsSubject.send(.loginManually)
|
||||
case .loginWithQR:
|
||||
actionsSubject.send(.loginWithQR)
|
||||
case .loginManually:
|
||||
actionsSubject.send(.loginManually)
|
||||
case .register:
|
||||
actionsSubject.send(.register)
|
||||
case .reportProblem:
|
||||
|
||||
Reference in New Issue
Block a user