Values representing the duration of an interval, from a day up to a year.


enum PeriodUnit : UInt


The period unit represents the duration of an interval. Period units are used with the number of units to determine one period in SKProductSubscriptionPeriod.


Period Units

case day

An interval lasting one day.

case month

An interval lasting one month.

case week

An interval lasting one week.

case year

An interval lasting one year.

See Also

Getting Subscription Information

var subscriptionGroupIdentifier: String?

The identifier of the subscription group to which the subscription belongs.

var subscriptionPeriod: SKProductSubscriptionPeriod?

The period details for products that are subscriptions.

class SKProductSubscriptionPeriod

An object containing the subscription period duration information.