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 View

Creates a view to load and merchandise a collection of products from the App Store using product identifiers. Internally, ProductView is used, and therefore productViewStyle can also be applied here.

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

VStack {
    StoreView(ids: ["auto_renewable_subscription_1", "non_consumable_1"])
    StoreView(ids: ["auto_renewable_subscription_1", "non_consumable_1"], prefersPromotionalIcon: true)
}
iOS 17.0+ iPadOS 17.0+ macOS 14.0+ watchOS 10.0+ visionOS 1.0+

Every available iPhone screenshot for Store View.

1 views