ModelMigrating
public protocol ModelMigrating
Instances of conforming type know how to migrate from one version to the next version
-
Starts a migration process from the passed version number to the next number
Declaration
Swift
func startModelMigration( from currentVersion: ModelVersion, defaultProfileName: String ) -> AnyPublisher<ModelVersion, MigrationError>Parameters
currentVersionThe version from which migration should be done
defaultProfileNameThe apps localized default (onboarding) profile name.
View on GitHub
ModelMigrating Protocol Reference