CSMigrationType
@objc
public final class CSMigrationType : NSObject, CoreStoreObjectiveCType
The CSMigrationType
serves as the Objective-C bridging type for MigrationType
.
See also
MigrationType
-
Returns
YES
if theCSMigrationType
‘ssourceVersion
anddestinationVersion
do not match. ReturnsNO
otherwise.Declaration
Swift
@objc public var needsMigration: Bool { get }
-
Returns the source model version for the migration type. If no migration is required,
sourceVersion
will be equal to thedestinationVersion
.Declaration
Swift
@objc public var sourceVersion: String { get }
-
Returns the destination model version for the migration type. If no migration is required,
destinationVersion
will be equal to thesourceVersion
.Declaration
Swift
@objc public var destinationVersion: String { get }
-
Returns
YES
if theCSMigrationType
is a lightweight migration. Used as syntactic sugar.Declaration
Swift
@objc public var isLightweightMigration: Bool { get }
-
Returns
YES
if theCSMigrationType
is a heavyweight migration. Used as syntactic sugar.Declaration
Swift
@objc public var isHeavyweightMigration: Bool { get }
-
Declaration
Swift
public let bridgeToSwift: MigrationType
-
Declaration
Swift
public required init(_ swiftValue: MigrationType)