---
title: NSPersistentStoreCoordinatorStoresDidChange
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsnotification/name-swift.struct/nspersistentstorecoordinatorstoresdidchange
---

# NSPersistentStoreCoordinatorStoresDidChange

A notification that the coordinator posts after its registered stores change.

## Declaration

```swift
static let NSPersistentStoreCoordinatorStoresDidChange: NSNotification.Name
```

## Discussion

Discussion This notification’s object is the changed store coordinator. The framework posts the notification to an internal thread. Move to a known thread before peforming any work. The userInfo dictionary contains information about the added, updated, and removed persistent stores, which you access with the NSAddedPersistentStoresKey, NSUUIDChangedPersistentStoresKey, and NSRemovedPersistentStoresKey keys. Don’t capture the dictionary’s contents.

## See Also

### Core Data

- [NSManagedObjectContextDidSave](foundation/nsnotification/name-swift.struct/nsmanagedobjectcontextdidsave.md)
- [NSManagedObjectContextObjectsDidChange](foundation/nsnotification/name-swift.struct/nsmanagedobjectcontextobjectsdidchange.md)
- [NSManagedObjectContextWillSave](foundation/nsnotification/name-swift.struct/nsmanagedobjectcontextwillsave.md)
- [NSPersistentStoreCoordinatorStoresWillChange](foundation/nsnotification/name-swift.struct/nspersistentstorecoordinatorstoreswillchange.md)
- [NSPersistentStoreCoordinatorWillRemoveStore](foundation/nsnotification/name-swift.struct/nspersistentstorecoordinatorwillremovestore.md)
- [NSCoreDataCoreSpotlightDelegateIndexDidUpdate](foundation/nsnotification/name-swift.struct/nscoredatacorespotlightdelegateindexdidupdate.md)
- [NSManagedObjectContextDidMergeChangesObjectIDs](foundation/nsnotification/name-swift.struct/nsmanagedobjectcontextdidmergechangesobjectids.md)
- [NSManagedObjectContextDidSaveObjectIDs](foundation/nsnotification/name-swift.struct/nsmanagedobjectcontextdidsaveobjectids.md)
- [NSPersistentStoreRemoteChange](foundation/nsnotification/name-swift.struct/nspersistentstoreremotechange.md)
- [NSPersistentStoreDidImportUbiquitousContentChanges](foundation/nsnotification/name-swift.struct/nspersistentstoredidimportubiquitouscontentchanges.md)
