Hey you can you displayPrice will give you the price with local currency symbol. use product.displayPrice
And you want to know user's App Store Account currencyCode you can find that from
if let storeFront = SKPaymentQueue.default().storefront {
print(storeFront.countryCode)
}
Post
Replies
Boosts
Views
Activity
You can also get currency code but with one trick for now:
let price = product.price.formatted() // give you price in string
let displayPrice = product.displayPrice
let currencySymbol = displayPrice.replacingOccurrences(of: price, with: "")
We are using this quick fix for now. Until apple provide any proper solution.
Hope will love your problem.
Hello, apple team
we are also facing same issue any update on this?