finishSyncing(_:completionHandler:)
Waits for the directory sync to complete, showing the sync’s progress in a modal alert.
Declaration
func finishSyncing(_ statusDisplay: UIWindow, completionHandler completion: @escaping @Sendable () -> Void)func finishSyncing(_ statusDisplay: UIWindow) asyncfunc finishSyncing(_ statusDisplay: NSWindow, completionHandler completion: @escaping @Sendable () -> Void)func finishSyncing(_ statusDisplay: NSWindow) asyncParameters
- statusDisplay:
The window where the system shows progress and alerts.
- completion:
The block that GameSave calls after syncing finishes.
Discussion
If the sync results in a conflict, the framework displays a conflict resolution UI for the user to chose a version that will be used. If the user isn’t signed in to iCloud or iCloud drive, the framework informs the user and then switches to local saving.