mirror of
https://github.com/bitwarden/ios.git
synced 2025-12-15 14:00:25 -06:00
29 lines
701 B
Swift
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
|
|
}
|