mirror of
https://github.com/bitwarden/ios.git
synced 2026-05-31 05:46:35 -05:00
19 lines
585 B
Swift
19 lines
585 B
Swift
import BitwardenKit
|
|
import Foundation
|
|
|
|
// MARK: - GlobalModalModule
|
|
|
|
/// An object that builds coordinator for global modals.
|
|
@MainActor
|
|
public protocol GlobalModalModule {
|
|
/// Initializes a coordinator for navigating between `GlobalModalRoute`s.
|
|
///
|
|
/// - Parameters:
|
|
/// - stackNavigator: The stack navigator that will be used to navigate between routes.
|
|
/// - Returns: A coordinator that can navigate to `GlobalModalRoute`s.
|
|
///
|
|
func makeGlobalModalCoordinator(
|
|
stackNavigator: StackNavigator,
|
|
) -> AnyCoordinator<GlobalModalRoute, Void>
|
|
}
|