Skip to content

Commit c535bbd

Browse files
author
Achyut Kumar M
committed
hide sidebar on clicking revert
1 parent 0a58820 commit c535bbd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

GoInfoGame/GoInfoGame/UI/Utils/UndoButton.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ struct UndoButton: View {
1818
onUndo: { id, type in
1919
MapUndoManager.shared.undo(for: Int64(id), type: type)
2020
undoItems = MapUndoManager.shared.getUndoItems()
21+
withAnimation {
22+
showSidebar = false
23+
}
2124
},
2225
onClose: {
2326
withAnimation {

0 commit comments

Comments
 (0)