danthorpe / Money

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

How to use this? #69

Open SylarRuby opened 7 years ago

SylarRuby commented 7 years ago

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.

danthorpe commented 7 years ago

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.

danthorpe commented 7 years ago

Also, I wrote an introductory blog post about it here and the README contains pretty much everything else you need to know.