ios/AuthenticatorShared/UI/Vault/ItemList/ItemListRoute.swift
2024-04-04 16:08:37 -05:00

29 lines
701 B
Swift

import BitwardenSdk
import Foundation
// MARK: - ItemListRoute
/// A route to a specific screen or subscreen of the Token List
public enum ItemListRoute: Equatable, Hashable {
/// A route to the add item screen.
case addItem
/// A route to the base token list screen.
case list
/// A route to the manual totp screen for setting up TOTP.
case setupTotpManual
/// A route to the view token screen.
///
/// - Parameter id: The id of the token to display.
///
case viewToken(id: String)
}
enum ItemListEvent {
/// When the app should show the scan code screen.
/// Defaults to `.setupTotpManual` if camera is unavailable.
case showScanCode
}