<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSPersistentStoreCoordinator/StoresDidChangeMessage",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Data",
      "CoreData"
    ],
    "preciseIdentifier" : "s:So28NSPersistentStoreCoordinatorC8CoreDataE22StoresDidChangeMessageV"
  },
  "title" : "NSPersistentStoreCoordinator.StoresDidChangeMessage"
}
-->

# NSPersistentStoreCoordinator.StoresDidChangeMessage

Posted when stores are added to or removed from the persistent store coordinator on the main queue.

```
struct StoresDidChangeMessage
```

## Topics

### Instance Properties

[`var addedStores: [NSPersistentStore]`](/documentation/CoreData/NSPersistentStoreCoordinator/StoresDidChangeMessage/addedStores)

Stores that were added during this change.

[`let persistentStoreCoordinator: NSPersistentStoreCoordinator`](/documentation/CoreData/NSPersistentStoreCoordinator/StoresDidChangeMessage/persistentStoreCoordinator)

[`var removedStores: [NSPersistentStore]`](/documentation/CoreData/NSPersistentStoreCoordinator/StoresDidChangeMessage/removedStores)

Stores that were removed during this change.

[`var uuidChangedStores: (oldValue: NSPersistentStore, newValue: NSPersistentStore)?`](/documentation/CoreData/NSPersistentStoreCoordinator/StoresDidChangeMessage/uuidChangedStores)

## Relationships

### Conforms To

[`MainActorMessage`](/documentation/Foundation/NotificationCenter/MainActorMessage)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)