Money
Money copied to clipboard
How to use this?
Sorry for a really stupid question but for new comer to Swift, how to use this in my Swift project? I do not know what to search for.
Hi @SylarRuby, do you have an app which needs to work with "money types" i.e. represent dollars & cents, or pounds & pence?
If so, then you might need to perform math, or display money values to the user. This framework can facilitate that.
However, you can also just use built in Foundation types like DecimalNumber
to perform math, and Formatter
to display currency. And, I would say that if you are new to Swift and just getting started, then getting to learn built in types is the best way to learn.
Also, I wrote an introductory blog post about it here and the README contains pretty much everything else you need to know.