Instance Property

unit

The increment of time that a subscription period is specified in.

Declaration

var unit: SKProduct.PeriodUnit { get }

Discussion

The units used to specify a subscription period include day, week, month, and year, as defined in SKProduct.PeriodUnit.

To calculate the duration of one subscription period, multiply the unit by the number of units (numberOfUnits).

See Also

Getting Subscription Period Details

var numberOfUnits: Int

The number of units per subscription period.

enum SKProduct.PeriodUnit

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