<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/appStoreOverlay(isPresented:configuration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewP010_StoreKit_aB0E03appD7Overlay11isPresented13configurationQrAA7BindingVySbG_So22SKOverlayConfigurationCyctF"
  },
  "title" : "appStoreOverlay(isPresented:configuration:)"
}
-->

# appStoreOverlay(isPresented:configuration:)

Presents a StoreKit overlay when a given condition is true.

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

> SeeAlso: SKOverlay.Configuration.

---

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)