Contents

SubscriptionPricingModelGroupSet

A set of subscription option groups, where each group represents subscriptions merchandised with a common pricing model.

Declaration

@MainActor @preconcurrency struct SubscriptionPricingModelGroupSet<Label, MarketingContent> where Label : View, MarketingContent : View

Mentioned in

Overview

Use this type to present the same subscription plans side by side, grouped by pricing model. A product appears in more than one group when it offers more than one pricing model, for example, when it has both single-price and seat-based pricing terms for multiseat purchases.

The label and marketing content closures receive a Product.SubscriptionInfo.PricingTerms.PricingModel value that identifies each group. Use its case, Product.SubscriptionInfo.PricingTerms.PricingModel.singlePrice(_:) or Product.SubscriptionInfo.PricingTerms.PricingModel.seatBased(_:), to decide what each group shows. Don’t read the case’s associated value: it describes the pricing of one product in the group, not the group as a whole.

For more information, see Supporting multiseat purchases in your app.

Topics

Creating pricing model group sets

Creating the group style

See Also

Declaring the structure of a subscription store