mirror of
https://github.com/bitwarden/ios.git
synced 2025-12-11 04:34:55 -06:00
31 lines
919 B
Swift
31 lines
919 B
Swift
import BitwardenKit
|
|
import Foundation
|
|
|
|
// MARK: - LoginRequestModule
|
|
|
|
/// An object that builds coordinators for the vault tab.
|
|
@MainActor
|
|
protocol LoginRequestModule {
|
|
/// Initializes a coordinator for navigating between `LoginRequestRoute`s.
|
|
///
|
|
/// - Parameters:
|
|
/// - stackNavigator: The stack navigator that will be used to navigate between routes.
|
|
/// - Returns: A coordinator that can navigate to `LoginRequestRoute`s.
|
|
///
|
|
func makeLoginRequestCoordinator(
|
|
stackNavigator: StackNavigator,
|
|
) -> AnyCoordinator<LoginRequestRoute, Void>
|
|
}
|
|
|
|
extension DefaultAppModule: LoginRequestModule {
|
|
func makeLoginRequestCoordinator(
|
|
stackNavigator: StackNavigator,
|
|
) -> AnyCoordinator<LoginRequestRoute, Void> {
|
|
LoginRequestCoordinator(
|
|
services: services,
|
|
stackNavigator: stackNavigator,
|
|
)
|
|
.asAnyCoordinator()
|
|
}
|
|
}
|