Contents

addPersistentStore(with:completionHandler:)

Adds a persistent store using the provided description.

Declaration

func addPersistentStore(with storeDescription: NSPersistentStoreDescription, completionHandler block: @escaping (NSPersistentStoreDescription, (any Error)?) -> Void)

Parameters

  • storeDescription:

    A description object used to create and load a persistent store.

  • block:

    The completion handler block that’s invoked after the store is added.

See Also

Adding or removing a store