feat: add redo and undo commands

This commit is contained in:
dscyrescotti
2024-07-14 18:16:13 +07:00
parent c1e2fa227e
commit bd5701cf88
4 changed files with 53 additions and 40 deletions
+2 -6
View File
@@ -15,15 +15,11 @@ final class Application: NSObject, ObservableObject {
extension Application {
func openMemo(_ memoObject: MemoObject?) {
withAnimation(.easeOut) {
self.memoObject = memoObject
}
self.memoObject = memoObject
}
func closeMemo() {
withAnimation(.easeOut) {
self.memoObject = nil
}
self.memoObject = nil
}
}