Contents

willMigrateHandler

The handler to execute before the stage runs.

Declaration

var willMigrateHandler: ((NSStagedMigrationManager, NSCustomMigrationStage) throws -> Void)? { get set }

Discussion

Use this handler to prepare the persistent store’s data for the pending migration. Access the store using the container property of the handler’s migrationManager parameter.

See Also

Assigning event handlers