---
title: "init(products:prefersPromotionalIcon:)"
framework: storekit
role: symbol
role_heading: Initializer
path: "storekit/storeview/init(products:preferspromotionalicon:)"
---

# init(products:prefersPromotionalIcon:)

Creates a view to load and merchandise a collection of products from the App Store.

## Declaration

```swift
nonisolated init(products: some Collection<Product>, prefersPromotionalIcon: Bool = false) where Icon == EmptyView, PlaceholderIcon == EmptyView
```

## Parameters

- `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

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.

## See Also

### Creating store views with preloaded products

- [init(products:prefersPromotionalIcon:icon:)](storekit/storeview/init(products:preferspromotionalicon:icon:).md)
- [init(products:icon:)](storekit/storeview/init(products:icon:).md)
