Change default currency in Ventura

I am in the UK and doing some SwiftUI training and the tutorial uses:

format: .currency(Locale.current.currency?.identifier ?? "GBP").


But Locale.current.currency?.identifier is returning "USD"


Ventura no longer offers a UI for updating the currency so I used the Terminal solution proposed in this forum.


Before: defaults read NSGlobalDomain AppleLocale --> "en_GB"

defaults write NSGlobalDomain AppleLocale -string "en_GB@currency=GBP"

After: defaults read NSGlobalDomain AppleLocale --> "en_GB@currency=GBP"


But in XCode: Locale.current.currency?.identifier is still returning "USD"

How can I change this value?


MacBook Pro (M2, 2022)

Posted on Mar 24, 2023 3:55 AM

Reply
8 replies

Mar 24, 2023 6:56 AM in response to Owl-53

Thanks - they were not able to help BUT I have found a partial solution - the Locale.current.currency?.identifier I am looking at in XCode is that of the iPhone preview or simulator, not my mac! I can open the simulator and change its region settings - this fixes the issue on the simulator.


Does anyone know how to change the region of the XCode Preview device?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Change default currency in Ventura

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.