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.

StoreView

Store Cancellation Button

A type of button that people use to dismiss the current store presentation. It is displayed by default and only works in a sheet.

Explore Store Cancellation Button on iPhone in portrait, with SwiftUI code and Apple API documentation.

Text("Foo")
    .sheet(isPresented: .constant(true)) {
        StoreView(ids: ["auto_renewable_subscription_1", "non_consumable_1"])
            .storeButton(.visible, for: .cancellation)
    }
iOS 17.0+ iPadOS 17.0+ macOS 14.0+ watchOS 1.0+ visionOS 1.0+

Every available iPhone screenshot for Store Cancellation Button.

1 views