<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/ProductView/init(id:prefersPromotionalIcon:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "StoreKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:17_StoreKit_SwiftUI11ProductViewV2id22prefersPromotionalIconACy0cD005EmptyF0VAHGSS_SbtcAHRszAHRs_rlufc"
  },
  "title" : "init(id:prefersPromotionalIcon:)"
}
-->

# init(id:prefersPromotionalIcon:)

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

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

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 ``doc://com.apple.storekit/documentation/StoreKit/ProductView/init(id:icon:placeholderIcon:)`` initializer. It receives a ``doc://com.apple.storekit/documentation/StoreKit/ProductIconPhase``, which enables you to supply an image for each phase of the image-loading process.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)