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

# init(ids:prefersPromotionalIcon:)

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

## Declaration

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

## Parameters

- `productIDs`: The product identifiers to load from the App Store.
- `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.

## See Also

### Creating store views that load products

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