---
title: "Custom Icon Store View | Explore SwiftUI"
description: "Creates a view to load a collection of products from the App Store using product identifiers, and merchandise them using a custom image"
canonical_url: "https://exploreswiftui.com/library/storeview/custom-icon-store-view"
meta:
  author: "Explore SwiftUI"
  "og:description": "Creates a view to load a collection of products from the App Store using product identifiers, and merchandise them using a custom image"
  "og:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_Custom%2BIcon%2BStore%2BView%2Cdescription_~Q3JlYXRlcyBhIHZpZXcgdG8gbG9hZCBhIGNvbGxlY3Rpb24gb2YgcHJvZHVjdHMgZnJvbSB0aGUgQXBwIFN0b3JlIHVzaW5nIHByb2R1Y3QgaWRlbnRpZmllcnMsIGFuZCBtZXJjaGFuZGlzZSB0aGVtIHVzaW5nIGEgY3VzdG9tIGltYWdlLg%2Ccategory_StoreView%2Cimage_~L2FwaS9pbWFnZXMvMjE0L3ZhcmlhbnRzLzY0OT92PTE3OTAwNzM0Nzg4NDImcj0yJnc9MTI4MCZxPTg1JmY9anBlZw%2CimageMode_crop%2CimagePosition_top%2CimageFrame_~cG9zaXRpb246IGFic29sdXRlOyByaWdodDogMDsgd2lkdGg6IDY0MHB4OyBoZWlnaHQ6IDQ4MHB4OyBkaXNwbGF5OiBmbGV4OyBvdmVyZmxvdzogaGlkZGVuOyBiYWNrZ3JvdW5kOiAjRkZGRkZGOyBib3gtc2hhZG93OiAwIC0xMHB4IDUwcHggcmdiYSgzNyw5OSwyMzUsMC4xOCk7IGJvcmRlci1sZWZ0OiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm90dG9tOiAwOyBib3JkZXItdG9wOiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm9yZGVyLXRvcC1sZWZ0LXJhZGl1czogNzRweDs%2Cprops_eyJwbGF0Zm9ybXMiOlsiaU9TIiwiaVBhZE9TIiwibWFjT1MiLCJ3YXRjaE9TIiwidHZPUyIsInZpc2lvbk9TIl19%2Cp_Ii9saWJyYXJ5L3N0b3Jldmlldy9jdXN0b20taWNvbi1zdG9yZS12aWV3Ig%2Cs_IGZm4Sg1MfdB1QKk.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Custom Icon Store View | Explore SwiftUI"
  "twitter:description": "Creates a view to load a collection of products from the App Store using product identifiers, and merchandise them using a custom image"
  "twitter:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_Custom%2BIcon%2BStore%2BView%2Cdescription_~Q3JlYXRlcyBhIHZpZXcgdG8gbG9hZCBhIGNvbGxlY3Rpb24gb2YgcHJvZHVjdHMgZnJvbSB0aGUgQXBwIFN0b3JlIHVzaW5nIHByb2R1Y3QgaWRlbnRpZmllcnMsIGFuZCBtZXJjaGFuZGlzZSB0aGVtIHVzaW5nIGEgY3VzdG9tIGltYWdlLg%2Ccategory_StoreView%2Cimage_~L2FwaS9pbWFnZXMvMjE0L3ZhcmlhbnRzLzY0OT92PTE3OTAwNzM0Nzg4NDImcj0yJnc9MTI4MCZxPTg1JmY9anBlZw%2CimageMode_crop%2CimagePosition_top%2CimageFrame_~cG9zaXRpb246IGFic29sdXRlOyByaWdodDogMDsgd2lkdGg6IDY0MHB4OyBoZWlnaHQ6IDQ4MHB4OyBkaXNwbGF5OiBmbGV4OyBvdmVyZmxvdzogaGlkZGVuOyBiYWNrZ3JvdW5kOiAjRkZGRkZGOyBib3gtc2hhZG93OiAwIC0xMHB4IDUwcHggcmdiYSgzNyw5OSwyMzUsMC4xOCk7IGJvcmRlci1sZWZ0OiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm90dG9tOiAwOyBib3JkZXItdG9wOiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm9yZGVyLXRvcC1sZWZ0LXJhZGl1czogNzRweDs%2Cprops_eyJwbGF0Zm9ybXMiOlsiaU9TIiwiaVBhZE9TIiwibWFjT1MiLCJ3YXRjaE9TIiwidHZPUyIsInZpc2lvbk9TIl19%2Cp_Ii9saWJyYXJ5L3N0b3Jldmlldy9jdXN0b20taWNvbi1zdG9yZS12aWV3Ig%2Cs_IGZm4Sg1MfdB1QKk.png"
  "twitter:title": "Custom Icon Store View | Explore SwiftUI"
---

> Index of every page on this site: [llms.txt](https://exploreswiftui.com/llms.txt)

**Interactive previews**[ iPhone](https://exploreswiftui.com/iphone?element=214)

# **Custom Icon Store View**

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

![Custom Icon Store View - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/214/variants/649?v=1790073478842&r=2&w=800&q=80&f=webp)

### **Platform Compatibility**

iOS 17.0+ iPadOS 17.0+ macOS 14.0+ watchOS 10.0+ tvOS 17.0+ visionOS 1.0+

### **Tags**

### **SwiftUI Code**

[ Docs](<https://developer.apple.com/documentation/storekit/storeview/init(ids:preferspromotionalicon:icon:)>)

```
StoreView(ids: ["auto_renewable_subscription_1", "non_consumable_1"]) { product in
    if product.id == "auto_renewable_subscription_1" {
        Image(systemName: "checkmark.seal")
    } else {
        Image(systemName: "cat")
    }
}
```

### **Found an issue or have a suggestion?**

Created: July 12, 2026Updated: July 12, 2026

### **More StoreView Components **

[**View all **](https://exploreswiftui.com/library/storeview)

![Store Cancellation Button - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/218/variants/134?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Store Cancellation Button**

A type of button that people use to dismiss the current store presentation. It is displayed by default and only works in a sheet.

![Restore Purchases Button - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/217/variants/77?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Restore Purchases Button**

A type of button that people use to restore purchases.

![Icon Phase Store View - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/216/variants/705?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Icon Phase Store View**

Creates a view to load a collection of products from the App Store using product identifiers, and merchandise them using their promotional images and a custom placeholder icon.

![Placeholder Icon Store View - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/215/variants/653?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Placeholder Icon Store View**

Creates a view to load a collection of products from the App Store using product identifiers, and merchandise them using an image and a custom placeholder icon.

![Store View - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/213/variants/651?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Store View**

Creates a view to load and merchandise a collection of products from the App Store using product identifiers. Internally, ProductView is used, and therefore productViewStyle can also be applied here.

### **Explore Other Components **

[**Browse all **](https://exploreswiftui.com/)

![CircularProgressViewStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/80/variants/86?v=1790073478842&r=2&w=412&q=75&f=webp)

### **CircularProgressViewStyle**

The style of a progress view that uses a circular gauge to indicate the partial completion of an activity

![Overlay Arrangement Edge - iOS on iPhone Duo - Landscape - Partially Open - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/251/variants/1787?v=1790586084694&r=2&w=412&q=75&f=webp)

### **Overlay Arrangement Edge**

The horizontal edge a view in an overlay arrangement occupies when the arrangement transitions to a horizontal layout. In this case, the primary view overlays the secondary view at the trailing edge when the screen is partially open in landscape.

![ProgressView - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/78/variants/65?v=1790073478842&r=2&w=412&q=75&f=webp)

### **ProgressView**

The different ProgressView initializers

![App Store Overlay - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/224/variants/269?v=1790073478842&r=2&w=412&q=75&f=webp)

### **App Store Overlay**

Presents a StoreKit overlay when a given condition is true.

![Glass Button Styles - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/87/variants/314?v=1794863768271&r=2&w=412&q=75&f=webp)

### **Glass Button Styles**

A button style that applies glass border artwork based on the button’s context

![ViewThatFits - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/5/variants/1?v=1790073478842&r=2&w=412&q=75&f=webp)

### **ViewThatFits**

A view that adapts to the available space by providing the first child view that fits.

![TabSection - iPadOS - Landscape - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/157/variants/618?v=1790073478842&r=2&w=412&q=75&f=webp)

### **TabSection**

A container that you can use to add hierarchy within a tab view.

![Menu Fixed Order - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/18/variants/132?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Menu Fixed Order**

Order items from top to bottom

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://exploreswiftui.com/#website","@type":"WebSite","description":"A visual library for SwiftUI APIs, components, and modifiers","inLanguage":"en-US","name":"Explore SwiftUI","url":"https://exploreswiftui.com/","publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/storeview/custom-icon-store-view#webpage","@type":"WebPage","dateModified":"2026-07-12T10:21:57.385Z","datePublished":"2026-07-12T10:21:24.704Z","description":"Creates a view to load a collection of products from the App Store using product identifiers, and merchandise them using a custom image","name":"Custom Icon Store View","url":"https://exploreswiftui.com/library/storeview/custom-icon-store-view","breadcrumb":{"@id":"https://exploreswiftui.com/library/storeview/custom-icon-store-view#breadcrumb"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"},"mainEntity":{"@id":"https://exploreswiftui.com/library/storeview/custom-icon-store-view#article"},"potentialAction":[{"@type":"ReadAction","target":["https://exploreswiftui.com/library/storeview/custom-icon-store-view"]}],"primaryImageOfPage":{"@id":"https://exploreswiftui.com/#logo"}},{"@id":"https://exploreswiftui.com/#identity","@type":"Organization","description":"A visual library for SwiftUI APIs, components, and modifiers","name":"Explore SwiftUI","url":"https://exploreswiftui.com","logo":{"@id":"https://exploreswiftui.com/#logo"},"sameAs":["https://x.com/Typ0genius","https://mastodon.social/@Typ0genius"]},{"@id":"https://exploreswiftui.com/library/storeview/custom-icon-store-view#article","citation":"https://developer.apple.com/documentation/storekit/storeview/init(ids:preferspromotionalicon:icon:)","dateModified":"2026-07-12T10:21:57.385Z","datePublished":"2026-07-12T10:21:24.704Z","description":"Creates a view to load a collection of products from the App Store using product identifiers, and merchandise them using a custom image","headline":"Custom Icon Store View","inLanguage":"en-US","name":"Custom Icon Store View","thumbnailUrl":"https://exploreswiftui.com/api/images/214/variants/649?v=1790073478842&r=2","url":"https://exploreswiftui.com/library/storeview/custom-icon-store-view","@type":["Article","TechArticle"],"about":{"@type":"Thing","name":"SwiftUI"},"author":{"@id":"https://exploreswiftui.com/#identity"},"hasPart":{"@id":"https://exploreswiftui.com/library/storeview/custom-icon-store-view#source-code"},"image":{"@id":"https://exploreswiftui.com/#/schema/image/1"},"isPartOf":{"@id":"https://exploreswiftui.com/library/storeview/custom-icon-store-view#webpage"},"mainEntityOfPage":{"@id":"https://exploreswiftui.com/library/storeview/custom-icon-store-view#webpage"},"publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/storeview/custom-icon-store-view#source-code","@type":"SoftwareSourceCode","codeSampleType":"full example","description":"Creates a view to load a collection of products from the App Store using product identifiers, and merchandise them using a custom image","name":"Custom Icon Store View SwiftUI Example","programmingLanguage":"Swift","runtimePlatform":"SwiftUI","text":"StoreView(ids: [\"auto_renewable_subscription_1\", \"non_consumable_1\"]) { product in\n    if product.id == \"auto_renewable_subscription_1\" {\n        Image(systemName: \"checkmark.seal\")\n    } else {\n        Image(systemName: \"cat\")\n    }\n}","about":[{"@type":"Thing","name":"SwiftUI"},{"@type":"Thing","name":"StoreView"},{"@type":"Thing","name":"Custom Icon Store View"}]},{"@id":"https://exploreswiftui.com/library/storeview/custom-icon-store-view#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://exploreswiftui.com","position":1},{"@type":"ListItem","name":"StoreView","item":"https://exploreswiftui.com/library/storeview","position":2},{"@type":"ListItem","name":"Custom Icon Store View","item":"https://exploreswiftui.com/library/storeview/custom-icon-store-view","position":3}]},{"@id":"https://exploreswiftui.com/#logo","@type":"ImageObject","caption":"Explore SwiftUI","contentUrl":"https://exploreswiftui.com/apple-touch-icon.png","inLanguage":"en","url":"https://exploreswiftui.com/apple-touch-icon.png"},{"@id":"https://exploreswiftui.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://exploreswiftui.com/api/images/214/variants/649?v=1790073478842&r=2","inLanguage":"en","url":"https://exploreswiftui.com/api/images/214/variants/649?v=1790073478842&r=2"}]}
```