<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameSave",
  "identifier" : "/documentation/GameSave/GSSyncedDirectory/finishSyncing(_:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameSave"
    ],
    "preciseIdentifier" : "c:objc(cs)GSSyncedDirectory(im)finishSyncing:completionHandler:"
  },
  "title" : "finishSyncing(_:completionHandler:)"
}
-->

# finishSyncing(_:completionHandler:)

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

iOS, iPadOS, Mac Catalyst, visionOS:

```
func finishSyncing(_ statusDisplay: UIWindow, completionHandler completion: @escaping @Sendable () -> Void)
```

```
func finishSyncing(_ statusDisplay: UIWindow) async
```

macOS:

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)