---
title: "finishSyncing(statusDisplay:)"
framework: gamesave
role: symbol
role_heading: Instance Method
path: "gamesave/gamesavesynceddirectory/finishsyncing(statusdisplay:)-309nq"
---

# finishSyncing(statusDisplay:)

Waits for the directory sync to complete, showing the sync’s progress in a modal alert.

## Declaration

```swift
func finishSyncing(statusDisplay window: NSWindow) async
```

## Parameters

- `window`: The window where the system shows progress and alerts.

## Discussion

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

- [finishSyncing()](gamesave/gamesavesynceddirectory/finishsyncing().md)
- [finishSyncing(statusDisplay:)](gamesave/gamesavesynceddirectory/finishsyncing(statusdisplay:)-500el.md)
