An object containing the subscription period duration information.


class SKProductSubscriptionPeriod : NSObject


A subscription period is a duration of time defined as some number of units, where a unit can be a, SKProduct.PeriodUnit.week, SKProduct.PeriodUnit.month, or SKProduct.PeriodUnit.year.

For example, a subscription period of two weeks has a unit of a SKProduct.PeriodUnit.week, and a numberOfUnits equal to 2.


Getting Subscription Period Details

var numberOfUnits: Int

The number of units per subscription period.

var unit: SKProduct.PeriodUnit

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

enum SKProduct.PeriodUnit

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


Inherits From

Conforms To

See Also

Retrieving Product Information

Loading In-App Product Identifiers

Load the unique identifiers for your in-app products in order to retrieve product information from the App Store.

Fetching Product Information from the App Store

Retrieve up-to-date information about the products for sale in your app to display to the user.

class SKProductsRequest

An object that can retrieve localized information from the App Store about a specified list of products.

class SKProduct

Information about a product previously registered in App Store Connect.

class SKProductsResponse

An App Store response to a request for information about a list of products.

class SKProductDiscount

The details of a discount offer for a subscription product.