Contents

expirationDate

The date when the user’s subscription expires.

Declaration

var expirationDate: Date! { get set }

Discussion

This property defines the exact time when the subscription becomes inactive. When the current subscription becomes inactive, the system behaves as though the person isn’t a subscriber, similar to calling setCurrentSubscription(_:) with a value of nil.

You can use this property when a subscriber decides not to renew their subscription by setting an expiration date that corresponds to the final billing cycle end date.

You can also use this property when a subscription only grants access to time-limited content, such as a single season of games for a sports league.

The default is distantFuture.

See Also

Setting Subscription Details