Skip to content

Commit

Permalink
Patch 0.6.1
Browse files Browse the repository at this point in the history
fix:
- Fixed a problem where incorrect animation was applied when removing more than one item from the stack
  • Loading branch information
FulcrumOne authored May 22, 2024
1 parent fa766b7 commit 5e58a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Internal/Managers/NavigationManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ extension NavigationManager {
private extension NavigationManager {
func onViewsWillUpdate(_ newValue: [AnyNavigatableView]) {
transitionType = newValue.count > views.count || !transitionType.isOne(of: .push, .pop) ? .push : .pop
transitionAnimation = (transitionType == .push ? newValue.last?.animation : views.last?.animation) ?? .no
transitionAnimation = (transitionType == .push ? newValue.last?.animation : views[newValue.count].animation) ?? .no
}
func onTransitionsBlockedUpdate() { if !transitionsBlocked, case let .replaceRoot(newRootView) = transitionType {
views = views.appendingAsFirstAndRemovingDuplicates(newRootView)
Expand Down

0 comments on commit 5e58a1b

Please sign in to comment.