You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library concept is awesome and could lead to great stuff in the future.
It would be great to include some currency conversion utilities which could potentially allow us wild ass stuff, like : let myCash = (USD(300) + EUR(150)) as HUF
What do you think?
The text was updated successfully, but these errors were encountered:
I've been thinking about currency exchanges since I started work on SwiftCurrency, and I'd love to see it done. However, exchanges rates change by the second across the world, and the only way to correctly (legally, economically, mathematically) convert one currency into another is from a live currency service.
This could be done as another library product (e.g. CurrencyExchange) that SwiftCurrency would provide - but I think it might be better as a separate package so that Currency can be the baseline API which other packages can interop with. This is as similar approach to both SwiftMetrics and SwiftLog.
I would expect such a library would provide a mechanism for connecting to any of the various free & paid exchange services such as Open Exchange Rates or XE Currency Data.
I have wanted to start this myself, but I've been busy with other projects as well as my day job. If you or anyone else want to spearhead this - I'm willing to give a steering direction to move towards!
As such - this feature is out of scope for the Currency package.
The library concept is awesome and could lead to great stuff in the future.
It would be great to include some currency conversion utilities which could potentially allow us wild ass stuff, like :
let myCash = (USD(300) + EUR(150)) as HUF
What do you think?
The text was updated successfully, but these errors were encountered: