setMetadata(_:for:)
Updates the metadata for the specified persistent store.
Declaration
func setMetadata(_ metadata: [String : Any]?, for store: NSPersistentStore)Parameters
- metadata:
A dictionary containing metadata for the store.
- store:
A persistent store.
Discussion
The store type and UUID (NSStoreTypeKey and NSStoreUUIDKey) are always added automatically, however NSStoreUUIDKey is only added if it is not set manually as part of the dictionary argument.