---
title: "didAdd(to:)"
framework: coredata
role: symbol
role_heading: Instance Method
path: "coredata/nspersistentstore/didadd(to:)"
---

# didAdd(to:)

Invoked after the persistent store has been added to the persistent store coordinator.

## Declaration

```swift
func didAdd(to coordinator: NSPersistentStoreCoordinator)
```

## Parameters

- `coordinator`: The persistent store coordinator to which the receiver was added.

## Discussion

Discussion The default implementation does nothing. You can override this method in a subclass in order to perform any kind of setup necessary before the load method is invoked.

## See Also

### Responding to the Store Life Cycle

- [willRemove(from:)](coredata/nspersistentstore/willremove(from:).md)
