mirror of
https://github.com/bitwarden/ios.git
synced 2025-12-11 03:37:34 -06:00
89 lines
2.3 KiB
Swift
89 lines
2.3 KiB
Swift
import BitwardenKit
|
|
import BitwardenSdk
|
|
import Foundation
|
|
|
|
/// A route to a specific screen in the settings tab.
|
|
///
|
|
public enum SettingsRoute: Equatable, Hashable {
|
|
/// A route to the about view.
|
|
case about
|
|
|
|
/// A route to the account security screen.
|
|
case accountSecurity
|
|
|
|
/// A route to add a new folder or edit an existing one.
|
|
///
|
|
/// - Parameter folder: The existing folder to edit, if applicable.
|
|
///
|
|
case addEditFolder(folder: FolderView?)
|
|
|
|
/// A route to the appearance screen.
|
|
case appearance
|
|
|
|
/// A route to the app extension screen.
|
|
case appExtension
|
|
|
|
/// A route to the app extension setup sheet.
|
|
case appExtensionSetup
|
|
|
|
/// A route to the auto-fill screen.
|
|
case autoFill
|
|
|
|
/// A route to the delete account screen.
|
|
case deleteAccount
|
|
|
|
/// A route that dismisses the current view.
|
|
case dismiss
|
|
|
|
/// A route to the export vault settings view or export to file view depending on feature flag.
|
|
case exportVault
|
|
|
|
/// A route to the export vault to another app view (Credential Exchange flow).
|
|
case exportVaultToApp
|
|
|
|
/// A route to the export vault to file view.
|
|
case exportVaultToFile
|
|
|
|
/// A route to a flight recorder view.
|
|
case flightRecorder(FlightRecorderRoute)
|
|
|
|
/// A route to view the folders in the vault.
|
|
case folders
|
|
|
|
/// A route to the import logins screen.
|
|
case importLogins
|
|
|
|
/// A route to view a login request.
|
|
///
|
|
/// - Parameter loginRequest: The login request to display.
|
|
///
|
|
case loginRequest(_ loginRequest: LoginRequest)
|
|
|
|
/// A route to the other view.
|
|
case other
|
|
|
|
/// A route to the password auto-fill screen.
|
|
case passwordAutoFill
|
|
|
|
/// A route to the pending login requests view.
|
|
case pendingLoginRequests
|
|
|
|
/// A route to view the select language view.
|
|
///
|
|
/// - Parameter currentLanguage: The currently selected language option.
|
|
///
|
|
case selectLanguage(currentLanguage: LanguageOption)
|
|
|
|
/// A route to the settings screen.
|
|
case settings(SettingsPresentationMode)
|
|
|
|
/// A route to the share sheet to share a URL.
|
|
case shareURL(URL)
|
|
|
|
/// A route to the vault settings view.
|
|
case vault
|
|
|
|
/// A route to the vault unlock setup screen.
|
|
case vaultUnlockSetup
|
|
}
|