Skip to content

Commit

Permalink
Merge pull request #18 from dm-drogeriemarkt/develop
Browse files Browse the repository at this point in the history
Fix push navigation in modals
  • Loading branch information
dehlen authored Nov 26, 2024
2 parents b821f19 + eb9c376 commit 88dda1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Atlas/Atlas/Coordinators/MVVMCCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ extension MVVMCCoordinator {
case .modal(let animated):
navigationController.topMostViewController.present(view, animated: skipAnimation ? false : animated)
case .push(let animated):
navigationController.pushViewController(view, animated: skipAnimation ? false : animated)
(navigationController.topMostViewController.navigationController ?? navigationController)
.pushViewController(view, animated: skipAnimation ? false : animated)
}
}
}
Expand Down

0 comments on commit 88dda1a

Please sign in to comment.