Contents

gameSaveSyncingAlert(directory:finishedLoading:)

Presents a modal view while the game synced directory loads.

Declaration

@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

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