Instance Property

subscriptionPeriod

An object that defines the period for the product discount.

Declaration

var subscriptionPeriod: SKProductSubscriptionPeriod { get }

Discussion

This object represents the duration of a single subscription period. A period is described as a number of units, where a unit can be a SKProduct.PeriodUnit.day, SKProduct.PeriodUnit.month, SKProduct.PeriodUnit.week, or SKProduct.PeriodUnit.year.

To calculate the total amount of time that the discount price is available to the user, multiply the subscriptionPeriod by numberOfPeriods.

See Also

Getting the Discount Duration

var numberOfPeriods: Int

An integer that indicates the number of periods the product discount is available.