diff --git a/Delta/Launch/LaunchViewController.swift b/Delta/Launch/LaunchViewController.swift index cf66c3f..8ee0936 100644 --- a/Delta/Launch/LaunchViewController.swift +++ b/Delta/Launch/LaunchViewController.swift @@ -61,7 +61,17 @@ extension LaunchViewController } } - return [isDatabaseManagerStarted, isSyncingManagerStarted] + let isRecordControllerSeeded = RSTLaunchCondition(condition: { SyncManager.shared.syncCoordinator.recordController.isSeeded }) { (completionHandler) in + SyncManager.shared.syncCoordinator.recordController.seedFromPersistentContainer() { (result) in + switch result + { + case .success: completionHandler(nil) + case .failure(let error): completionHandler(error.error) + } + } + } + + return [isDatabaseManagerStarted, isSyncingManagerStarted, isRecordControllerSeeded] } override func handleLaunchError(_ error: Error)