mirror of
https://github.com/bitwarden/ios.git
synced 2026-04-16 20:36:44 -05:00
Add first launch tutorial (#38)
This commit is contained in:
committed by
GitHub
parent
6fcc415fff
commit
e8d889d31c
@@ -0,0 +1,26 @@
|
||||
// MARK: - TutorialModule
|
||||
|
||||
/// An object that builds tutorial coordinators
|
||||
///
|
||||
@MainActor
|
||||
protocol TutorialModule {
|
||||
/// Initializes a coordinator for navigating between `TutorialRoute` objects
|
||||
///
|
||||
/// - Parameters:
|
||||
/// - stackNavigator: The stack navigator
|
||||
/// - Returns: A coordinator
|
||||
///
|
||||
func makeTutorialCoordinator(
|
||||
stackNavigator: StackNavigator
|
||||
) -> AnyCoordinator<TutorialRoute, TutorialEvent>
|
||||
}
|
||||
|
||||
extension DefaultAppModule: TutorialModule {
|
||||
func makeTutorialCoordinator(stackNavigator: StackNavigator) -> AnyCoordinator<TutorialRoute, TutorialEvent> {
|
||||
TutorialCoordinator(
|
||||
module: self,
|
||||
services: services,
|
||||
stackNavigator: stackNavigator
|
||||
).asAnyCoordinator()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user