subscriptionPeriodFormatStyle
The format style for the date components related to a subscription’s duration.
Declaration
@backDeployed(before: iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, macCatalyst 16.0)
var subscriptionPeriodFormatStyle: Date.ComponentsFormatStyle { get }Discussion
Use this format style to format text that describes a subscription period, including its length and unit, such as “1 week”, “2 months”, and so on. Use this style with the formatted(_:referenceDate:) method on Product.SubscriptionPeriod to format the subscription period for the App Store locale.