ModelVersion
public protocol ModelVersion: Equatable
Mechanica
Types adopting the ModelVersion
protocol can be used to describe a Core Data Model and its versioning.
-
Mechanica
Protocol
ModelVersion
.List with all versions until now.
Declaration
Swift
static var allVersions: [Self]
-
Mechanica
Protocol
ModelVersion
.Current model version.
Declaration
Swift
static var currentVersion: Self
-
Mechanica
Protocol
ModelVersion
.Version name.
Declaration
Swift
var versionName: String
-
successor
Default implementationMechanica
Protocol
ModelVersion
.The next
ModelVersion
in the progressive migration.Default Implementation
Undocumented
Declaration
Swift
var successor: Self?
-
Mechanica
Protocol
ModelVersion
.NSBundle object containing the model file.
Declaration
Swift
var modelBundle: Bundle
-
Mechanica
Protocol
ModelVersion
.Model name.
Declaration
Swift
var modelName: String
-
managedObjectModel()
Extension methodMechanica
Protocol
ModelVersion
.Return the NSManagedObjectModel for this
ModelVersion
.Declaration
Swift
public func managedObjectModel() -> NSManagedObjectModel