From 1964dd7bf07a6f5657c8f9335cd5ca7fd74a2868 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B8=D1=82=D0=B0=D0=BB=D0=B8=D0=B9=20=D0=91=D0=B0?= =?UTF-8?q?=D1=80=D0=B0=D0=B1=D0=B0=D0=BD=D0=BE=D0=B2?= Date: Fri, 20 Dec 2024 19:25:24 +0300 Subject: [PATCH] Method overload (#132) --- .../Screen/Actions/Generic/ScreenFromAction.swift | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Sources/Screen/Actions/Generic/ScreenFromAction.swift b/Sources/Screen/Actions/Generic/ScreenFromAction.swift index d0e4d2fa..0cb6a477 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