init(products:prefersPromotionalIcon:)
Creates a view to load and merchandise a collection of products from the App Store.
Declaration
nonisolated init(products: some Collection<Product>, prefersPromotionalIcon: Bool = false) where Icon == EmptyView, PlaceholderIcon == EmptyViewParameters
- products:
The products to merchandise.
- prefersPromotionalIcon:
A Boolean value that indicates whether to use promotional images from the App Store, if they’re available. If this parameter is
false, the system ignores promotional images.
Discussion
By default, the store view doesn’t show promotional images. If you set prefersPromotionalIcon to true, the store view uses each product’s promotional image as its icon.