mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-07-10 14:52:46 +02:00
feat: add macos runtime
This commit is contained in:
@@ -13,7 +13,7 @@ struct MemolaApp: App {
|
||||
WindowGroup {
|
||||
DashboardView()
|
||||
.persistence(\.viewContext)
|
||||
.onReceive(NotificationCenter.default.publisher(for: UIApplication.willTerminateNotification)) { _ in
|
||||
.onReceive(NotificationCenter.default.publisher(for: Platform.Application.willTerminateNotification)) { _ in
|
||||
withPersistenceSync(\.viewContext) { context in
|
||||
try context.saveIfNeeded()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user