priceFormatStyle
The format style for the numbers in the price of the product.
Declaration
@backDeployed(before: iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, macCatalyst 16.0)
var priceFormatStyle: Decimal.FormatStyle.Currency { get }Discussion
The priceFormatStyle value is a localized number suitable for display. Use this value for localizing numbers derived from the price property, such as to calculate the price of two products as $(price * 2).
To display the price directly, rather than making calculations, use the displayPrice string instead.