Contents

preferredPricingTerms

The preferred pricing terms for this subscription option.

Declaration

var preferredPricingTerms: SubscriptionInfo.PricingTerms? { get }

Mentioned in

Discussion

This property reflects the pricing terms from the preferredSubscriptionPricingTerms(_:) view modifier on an ancestor view, or from the preferredSubscriptionPricingTerms(_:) modifier on the enclosing store content. The value is nil when you don’t specify preferred pricing terms. It’s the subscription’s default pricing terms when the modifier’s closure returns nil, or when the pricing terms you specify don’t exist for the subscription.

Use this property in your custom SubscriptionStoreControlStyle to display pricing information that matches the pricing terms the store uses. For example, when the pricingModel is seat-based, display its priceTiers.