mirror of
https://github.com/bitwarden/ios.git
synced 2025-12-11 04:34:55 -06:00
33 lines
1.1 KiB
Swift
33 lines
1.1 KiB
Swift
import BitwardenKit
|
|
|
|
// MARK: - ImportLoginsModule
|
|
|
|
/// An object that builds coordinators for the import logins views.
|
|
///
|
|
@MainActor
|
|
protocol ImportLoginsModule {
|
|
/// Initializes a coordinator for navigating between `ImportLoginsRoute`s.
|
|
///
|
|
/// - Parameter stackNavigator: The stack navigator that will be used to navigate between routes.
|
|
/// - Returns: A coordinator that can navigate to `ImportLoginsRoute`s.
|
|
///
|
|
func makeImportLoginsCoordinator(
|
|
delegate: ImportLoginsCoordinatorDelegate,
|
|
stackNavigator: StackNavigator,
|
|
) -> AnyCoordinator<ImportLoginsRoute, ImportLoginsEvent>
|
|
}
|
|
|
|
extension DefaultAppModule: ImportLoginsModule {
|
|
func makeImportLoginsCoordinator(
|
|
delegate: ImportLoginsCoordinatorDelegate,
|
|
stackNavigator: StackNavigator,
|
|
) -> AnyCoordinator<ImportLoginsRoute, ImportLoginsEvent> {
|
|
ImportLoginsCoordinator(
|
|
delegate: delegate,
|
|
module: self,
|
|
services: services,
|
|
stackNavigator: stackNavigator,
|
|
).asAnyCoordinator()
|
|
}
|
|
}
|