iPhone SwiftUI layouts

Explore SwiftUI APIs, components, and modifiers with interactive iPhone previews, Swift code, and Apple documentation. Compare every available orientation, appearance, and design.

View

App Store Overlay

Presents a StoreKit overlay when a given condition is true.

Explore App Store Overlay on iPhone in portrait, with SwiftUI code and Apple API documentation.

@State var showAppStoreOverlay = false

var body: some View {
    Button("Manage subscriptions") {
        showAppStoreOverlay = true
    }
    .appStoreOverlay(isPresented: $showAppStoreOverlay) {
        SKOverlay.AppConfiguration(appIdentifier: "1234567890", position: .bottom)
    }
}
iOS 14.0+ iPadOS 14.0+ visionOS 1.0+

Every available iPhone screenshot for App Store Overlay.

1 views