mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-03-28 04:25:28 +00:00
Animate hierarchy collapse
This commit is contained in:
parent
ec5bc5c1bb
commit
b71e01a7a5
1 changed files with 3 additions and 1 deletions
|
@ -349,7 +349,9 @@ public struct StatusRowView: View {
|
|||
private func handleTap() {
|
||||
guard !isFocused else { return }
|
||||
if indentationLevel > 0, viewModel.hierarchyCollapseState != nil {
|
||||
viewModel.isHierarchyExplicitlyCollapsed.toggle()
|
||||
withAnimation {
|
||||
viewModel.isHierarchyExplicitlyCollapsed.toggle()
|
||||
}
|
||||
} else {
|
||||
viewModel.navigateToDetail()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue