How can I get the currency symbols for the corresponding currency code with Swift (macOS).
Example:
You can try this:
let formatter = NSNumberFormatter() for locale in NSLocale.availableLocaleIdentifiers() { formatter.locale = NSLocale(localeIdentifier: locale) print("\(formatter.currencyCode) = \(formatter.currencySymbol)") }