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

# init(id:prefersPromotionalIcon:)

Creates a view to load and merchandise an individual product from the App Store.

## Declaration

```swift
nonisolated init(id productID: Product.ID, prefersPromotionalIcon: Bool = false) where Icon == EmptyView, PlaceholderIcon == EmptyView
```

## Parameters

- `productID`: The product identifier to load from the App Store.
- `prefersPromotionalIcon`: A Boolean value that indicates whether to use the promotional image from the App Store, if it’s available. If this parameter is false, the system ignores any promotional images.

## Discussion

Discussion By default, the view doesn’t show an icon. If you set the prefersPromotionalIcon parameter to true, the view displays a placeholder icon while loading, and replaces the placeholder with the promotional image for the product. tip: To gain more control over the image that decorates this view, use the init(id:icon:placeholderIcon:) initializer. It receives a ProductIconPhase, which enables you to supply an image for each phase of the image-loading process.

## See Also

### Creating product views that load products

- [init(id:prefersPromotionalIcon:icon:)](storekit/productview/init(id:preferspromotionalicon:icon:).md)
- [init(id:prefersPromotionalIcon:icon:placeholderIcon:)](storekit/productview/init(id:preferspromotionalicon:icon:placeholdericon:).md)
- [init(id:icon:placeholderIcon:)](storekit/productview/init(id:icon:placeholdericon:).md)
