---
title: didSave
framework: swiftdata
role: symbol
role_heading: Type Property
path: swiftdata/modelcontext/didsave
---

# didSave

A notification that posts when the context finishes processing pending inserts, changes, and deletes.

## Declaration

```swift
static let didSave: Notification.Name
```

## Discussion

Discussion The notification’s userInfo dictionary contains the persistent identifiers of any inserted, updated, or deleted models. Use the appropriate key to access those identifiers. For more information, see ModelContext.NotificationKey.

## See Also

### Registering for notifications

- [willSave](swiftdata/modelcontext/willsave.md)
- [ModelContext.NotificationKey](swiftdata/modelcontext/notificationkey.md)
