29 lines
501 B
Swift
29 lines
501 B
Swift
//
|
|
// Copyright 2021-2024 New Vector Ltd.
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
// Please see LICENSE in the repository root for full details.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
// MARK: - Coordinator
|
|
|
|
// MARK: View model
|
|
|
|
enum AuthenticationQRLoginStartViewModelResult {
|
|
case scanQR
|
|
case displayQR
|
|
}
|
|
|
|
// MARK: View
|
|
|
|
struct AuthenticationQRLoginStartViewState: BindableState {
|
|
var canShowDisplayQRButton: Bool
|
|
}
|
|
|
|
enum AuthenticationQRLoginStartViewAction {
|
|
case scanQR
|
|
case displayQR
|
|
}
|