Skip to content

Commit

Permalink
Method overload (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
BarabanovVVl authored Dec 20, 2024
1 parent 98c959e commit 1964dd7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Sources/Screen/Actions/Generic/ScreenFromAction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,23 @@ extension ScreenNavigator {
public func navigate<Output: ScreenContainer>(
from container: Output?,
to route: (_ route: ScreenRootRoute<Output>) -> ScreenRouteConvertible,
completion: Completion? = nil
completion: Completion?
) {
navigate(
from: container,
to: route(.initial).route(),
completion: completion
)
}

public func navigate<Output: ScreenContainer>(
from container: Output?,
to route: (_ route: ScreenRootRoute<Output>) -> ScreenRouteConvertible
) {
navigate(
from: container,
to: route(.initial).route()
)
}
}
#endif

0 comments on commit 1964dd7

Please sign in to comment.