mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-04-27 10:24:44 +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() {
|
private func handleTap() {
|
||||||
guard !isFocused else { return }
|
guard !isFocused else { return }
|
||||||
if indentationLevel > 0, viewModel.hierarchyCollapseState != nil {
|
if indentationLevel > 0, viewModel.hierarchyCollapseState != nil {
|
||||||
viewModel.isHierarchyExplicitlyCollapsed.toggle()
|
withAnimation {
|
||||||
|
viewModel.isHierarchyExplicitlyCollapsed.toggle()
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
viewModel.navigateToDetail()
|
viewModel.navigateToDetail()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue