danthorpe / Money

Swift value types for working with money & currency
MIT License
933 stars 91 forks source link

Getting Array of All Available Currencies #81

Closed morluna closed 7 years ago

morluna commented 7 years ago

Hello,

I was searching through the source code trying to find a method that would return a list of all currencies. Is this possible? I'm trying to create a very simple application that allows users to be able to select currencies from a list and add them to their "preferred" currencies.

I hope this is the right place to ask these questions, and thanks for your help!

danthorpe commented 7 years ago

Hi @camdendevelopers, well, the money types, are types, not strings, and I don't think you should want to instantiate them just to display in some UI.

What you probably want is just Locale.isoCurrencyCodes from Foundation.Locale.

morluna commented 7 years ago

Yes you are completely right, I closed my issue right away because of it. Thanks for you quick response!