Contents

appStoreOverlay(isPresented:configuration:)

Presents a StoreKit overlay when a given condition is true.

Declaration

nonisolated func appStoreOverlay(isPresented: Binding<Bool>, configuration: @escaping () -> SKOverlay.Configuration) -> some View

Parameters

  • isPresented:

    A Binding to a boolean value indicating whether the overlay should be presented.

  • configuration:

    A closure providing the configuration of the overlay.

Discussion

You use appStoreOverlay to display an overlay that recommends another app. The overlay enables users to instantly view the other app’s page on the App Store.

When isPresented is true, the system will run configuration to determine how to configure the overlay. The overlay will automatically be presented over the current scene.

See Also

Interacting with the App Store and Apple Music