---
title: "init(groupID:visibleRelationships:marketingContent:)"
framework: storekit
role: symbol
role_heading: Initializer
path: "storekit/subscriptionstoreview/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.

## Declaration

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

## See Also

### Creating subscription store views with custom marketing content

- [init(productIDs:marketingContent:)](storekit/subscriptionstoreview/init(productids:marketingcontent:).md)
- [init(subscriptions:marketingContent:)](storekit/subscriptionstoreview/init(subscriptions:marketingcontent:).md)
