mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-07-13 08:12:54 +02:00
feat: add redo and undo commands
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user