CSMigrationType
@objc
public final class CSMigrationType : NSObject, CoreStoreObjectiveCType
The CSMigrationType serves as the Objective-C bridging type for MigrationType.
See also
MigrationType
-
Returns
YESif theCSMigrationType‘ssourceVersionanddestinationVersiondo not match. ReturnsNOotherwise.Declaration
Swift
@objc public var needsMigration: Bool { get } -
Returns the source model version for the migration type. If no migration is required,
sourceVersionwill 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,
destinationVersionwill be equal to thesourceVersion.Declaration
Swift
@objc public var destinationVersion: String { get } -
Returns
YESif theCSMigrationTypeis a lightweight migration. Used as syntactic sugar.Declaration
Swift
@objc public var isLightweightMigration: Bool { get } -
Returns
YESif theCSMigrationTypeis 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)
View on GitHub
CSMigrationType Class Reference