---
title: "init(idType:groupedBy:label:marketingContent:)"
framework: storekit
role: symbol
role_heading: Initializer
path: "storekit/subscriptionoptiongroupset/init(idtype:groupedby:label:marketingcontent:)"
---

# init(idType:groupedBy:label:marketingContent:)

## Declaration

```swift
@MainActor @preconcurrency init(idType: GroupID.Type = GroupID.self, groupedBy transform: @escaping (Product) -> GroupID, @ViewBuilder label: @escaping (GroupID) -> Label, @ViewBuilder marketingContent: @escaping (GroupID) -> MarketingContent)
```

## See Also

### Creating subscription option group sets

- [init(idType:groupedBy:label:)](storekit/subscriptionoptiongroupset/init(idtype:groupedby:label:).md)
