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

# init(idType:groupedBy:label:)

## Declaration

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

## See Also

### Creating subscription option group sets

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