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