---
title: "gameSaveSyncingAlert(directory:finishedLoading:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/gamesavesyncingalert(directory:finishedloading:)"
---

# gameSaveSyncingAlert(directory:finishedLoading:)

Presents a modal view while the game synced directory loads.

## Declaration

```swift
@MainActor @preconcurrency func gameSaveSyncingAlert(directory: Binding<GameSaveSyncedDirectory?>, finishedLoading: @escaping @MainActor @Sendable () -> Void) -> some View

```

## Parameters

- `directory`: A binding to an optional game synced directory that was returned by calling GameSaveSyncedDirectory/openDirectory(containerIdentifier:). If this value is nil, the view doesn’t display.
- `finishedLoading`: The closure to execute after the loading process completes.

## Discussion

Discussion Use this method when you want to present a modal loading view to the user when a Boolean value you provide is true.
