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

    currentVersion

    The version from which migration should be done

    defaultProfileName

    The apps localized default (onboarding) profile name.