Instance Property


The set of developer-defined version identifiers for the model.


var versionIdentifiers: Set<AnyHashable> { get set }


Merged models return the combined collection of identifiers. The Core Data framework does not give models a default identifier, nor does it depend this value at runtime. For models created in Xcode, you set this value in the model inspector.

This value is meant to be used as a debugging hint to help you determine the models that were combined to create a merged model.

See Also

Handing Versions and Migration

func isConfiguration(withName: String?, compatibleWithStoreMetadata: [String : Any]) -> Bool

Returns a Boolean value that indicates whether a given configuration in the model is compatible with given metadata from a persistent store.

var entityVersionHashesByName: [String : Data]

A dictionary of the version hashes for the entities in the model, keyed by entity name.