mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-03-26 19:31:18 +01:00
feat: save title changes
This commit is contained in:
@@ -72,6 +72,9 @@ struct Toolbar: View {
|
||||
} else {
|
||||
title = memo.title
|
||||
}
|
||||
withPersistence(\.viewContext) { context in
|
||||
try context.saveIfNeeded()
|
||||
}
|
||||
}
|
||||
}
|
||||
.transition(.move(edge: .top).combined(with: .blurReplace))
|
||||
|
||||
Reference in New Issue
Block a user