mirror of
https://github.com/bitwarden/ios.git
synced 2025-12-11 13:54:06 -06:00
31 lines
889 B
Swift
31 lines
889 B
Swift
import BitwardenKit
|
|
import Foundation
|
|
|
|
// MARK: - DebugMenuModule
|
|
|
|
/// An object that builds coordinator for the debug menu.
|
|
@MainActor
|
|
protocol DebugMenuModule {
|
|
/// Initializes a coordinator for navigating between `DebugMenuRoute`s.
|
|
///
|
|
/// - Parameters:
|
|
/// - stackNavigator: The stack navigator that will be used to navigate between routes.
|
|
/// - Returns: A coordinator that can navigate to `DebugMenuRoute`s.
|
|
///
|
|
func makeDebugMenuCoordinator(
|
|
stackNavigator: StackNavigator,
|
|
) -> AnyCoordinator<DebugMenuRoute, Void>
|
|
}
|
|
|
|
extension DefaultAppModule: DebugMenuModule {
|
|
func makeDebugMenuCoordinator(
|
|
stackNavigator: StackNavigator,
|
|
) -> AnyCoordinator<DebugMenuRoute, Void> {
|
|
DebugMenuCoordinator(
|
|
services: services,
|
|
stackNavigator: stackNavigator,
|
|
)
|
|
.asAnyCoordinator()
|
|
}
|
|
}
|