<!--
{
  "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/SubscriptionStoreView/init(groupID:visibleRelationships:marketingContent:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "StoreKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:17_StoreKit_SwiftUI012SubscriptionA4ViewV7groupID20visibleRelationships16marketingContentACyxGSS_0aB07ProductVAAE0E12RelationshipVxyXEtcfc"
  },
  "title" : "init(groupID:visibleRelationships:marketingContent:)"
}
-->

# init(groupID:visibleRelationships:marketingContent:)

Creates a view that loads all the subscriptions in a subscription group from the App Store, and merchandises them with custom marketing content.

```
nonisolated init(groupID: String, visibleRelationships: Product.SubscriptionRelationship = .all, @ViewBuilder marketingContent: () -> Content)
```

## Parameters

`groupID`

The subscription group identifier to load from the App Store.

`visibleRelationships`

The kinds of subscription option relationships the view makes visible when someone is already subscribed to the subscription.

`marketingContent`

The view that contains marketing content to display above the store controls.

## Discussion

---

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)