init(byMerging:forStoreMetadata:)
Returns, for the version information in given metadata, a model merged from a given array of models.
Declaration
init?(byMerging models: [NSManagedObjectModel], forStoreMetadata metadata: [String : Any])Parameters
- models:
An array of instances of
NSManagedObjectModel. - metadata:
A dictionary containing version information from the metadata for a persistent store.
Return Value
A merged model from models for the version information in metadata. If a model cannot be created to match the version information in metadata, returns nil.
Discussion
This is the companion method to mergedModel(from:forStoreMetadata:).