Skip to content

Commit

Permalink
Ensure VisitOptions are always passed on visit
Browse files Browse the repository at this point in the history
  • Loading branch information
joemasilotti committed Dec 13, 2023
1 parent b275149 commit 84caebf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Turbo Navigator/TurboNavigator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ extension TurboNavigator: SessionDelegate {
// MARK: - TurboNavigationHierarchyControllerDelegate

extension TurboNavigator: TurboNavigationHierarchyControllerDelegate {
func visit(_ controller: Visitable, on navigationStack: TurboNavigationHierarchyController.NavigationStackType, with: VisitOptions) {
func visit(_ controller: Visitable, on navigationStack: TurboNavigationHierarchyController.NavigationStackType, with options: VisitOptions) {
switch navigationStack {
case .main: session.visit(controller, action: .advance)
case .modal: modalSession.visit(controller, action: .advance)
case .main: session.visit(controller, options: options)
case .modal: modalSession.visit(controller, options: options)
}
}

Expand Down

0 comments on commit 84caebf

Please sign in to comment.