Contents

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) async
func finishSyncing(_ statusDisplay: NSWindow, completionHandler completion: @escaping  @Sendable () -> Void)
func finishSyncing(_ statusDisplay: NSWindow) async

Parameters

  • 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.

See Also

Syncing a directory