currency
The currency of the price of the product.
Declaration
@backDeployed(before: iOS 17.2, macOS 14.2, tvOS 17.2, watchOS 10.2, visionOS 1.1)
var currency: Locale.Currency? { get }Discussion
The currency property represents the currency of the product’s price that the system records at the time of purchase.
Don’t use currency to infer the storefront. Use the storefront value in the transaction instead.
To access the transaction’s currency on systems earlier than iOS 16, iPadOS 16, macOS 13, tvOS 16, and watchOS 9, use currencyCode.