Icon Phase Store View
Creates a view to load a collection of products from the App Store using product identifiers, and merchandise them using their promotional images and a custom placeholder icon.
Platform Compatibility
Tags
SwiftUI Code
StoreView(ids: ["auto_renewable_subscription_1", "non_consumable_1"]) { _, productIconPhase in
switch productIconPhase {
case .loading:
Label("Loading", systemImage: "arrow.2.circlepath.circle")
case .failure(let error):
Label("Error: \(error.localizedDescription)", systemImage: "exclamationmark.circle")
case .unavailable:
Label("Unavailable", systemImage: "questionmark")
case .success(let promotedIcon):
promotedIcon
.resizable()
.scaledToFit()
}
} placeholderIcon: {
ProgressView()
}Found an issue or have a suggestion?
More StoreView Components
View allStore 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.
Placeholder Icon Store View
Creates a view to load a collection of products from the App Store using product identifiers, and merchandise them using an image and a custom placeholder icon.
Custom Icon Store View
Creates a view to load a collection of products from the App Store using product identifiers, and merchandise them using a custom image.
Explore Other Components
Browse allSheet Background Interaction
Controls whether people can interact with the view behind a presentation.
Multiple Sources Picker
Creates a picker that updates the selected property for all sources.
CircularGaugeStyle
A gauge style that displays an open ring with a marker that appears at a point along the ring to indicate the gauge’s current value
Hidden List Row Separator
Sets the display mode to hidden for the separator associated with this specific row.
TabsPickerStyle
A picker style that presents options as segmented tabs. On macOS, this style produces a segmented picker with a visual treatment that distinguishes tab navigation from value selection. On iOS, tvOS, and visionOS, the visual appearance matches that of the standard standard .segmented style. On all supported platforms, VoiceOver announces options as tabs.