Animate hierarchy collapse

This commit is contained in:
fwcd 2024-08-03 04:12:48 +02:00
parent ec5bc5c1bb
commit b71e01a7a5

View file

@ -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()
}