Setup animations for navigation root and split detail and sidebar module changes.
This commit is contained in:
committed by
Stefan Ceriu
parent
ca0597252f
commit
0217a37ba8
@@ -433,6 +433,8 @@ private struct NavigationSplitCoordinatorView: View {
|
||||
.navigationDestination(for: NavigationModule.self) { module in
|
||||
module.coordinator?.toPresentable()
|
||||
}
|
||||
.animation(.elementDefault, value: navigationSplitCoordinator.sidebarModule)
|
||||
.animation(.elementDefault, value: navigationSplitCoordinator.detailModule)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -721,5 +723,6 @@ private struct NavigationStackCoordinatorView: View {
|
||||
.fullScreenCover(item: $navigationStackCoordinator.fullScreenCoverModule) { module in
|
||||
module.coordinator?.toPresentable()
|
||||
}
|
||||
.animation(.elementDefault, value: navigationStackCoordinator.rootModule)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -533,7 +533,7 @@ class RoomFlowCoordinator: FlowCoordinatorProtocol {
|
||||
.store(in: &cancellables)
|
||||
|
||||
if !isChildFlow {
|
||||
navigationStackCoordinator.setRootCoordinator(coordinator, animated: animated) { [weak self] in
|
||||
navigationStackCoordinator.setRootCoordinator(coordinator, animated: false) { [weak self] in
|
||||
self?.stateMachine.tryEvent(.dismissFlow)
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user