diff --git a/Sources/Screen/Actions/Generic/ScreenFromAction.swift b/Sources/Screen/Actions/Generic/ScreenFromAction.swift index d0e4d2f..0cb6a47 100644 --- a/Sources/Screen/Actions/Generic/ScreenFromAction.swift +++ b/Sources/Screen/Actions/Generic/ScreenFromAction.swift @@ -67,7 +67,7 @@ extension ScreenNavigator { public func navigate( from container: Output?, to route: (_ route: ScreenRootRoute) -> ScreenRouteConvertible, - completion: Completion? = nil + completion: Completion? ) { navigate( from: container, @@ -75,5 +75,15 @@ extension ScreenNavigator { completion: completion ) } + + public func navigate( + from container: Output?, + to route: (_ route: ScreenRootRoute) -> ScreenRouteConvertible + ) { + navigate( + from: container, + to: route(.initial).route() + ) + } } #endif