Currency 0.4.0
Pre-release
Pre-release
API Docs are always available at peek-travel.github.io/swift-currency
Major
- The protocol hierarchy implementation of
AnyCurrency
andCurrencyProtocol
has been reimplemented to resolve incorrect Swift semantics (#25)- The most notable breaking changes are to initializers:
init(minorUnits)
is now generic onBinaryInteger
init(_:)
is now failable and requires theamount:
label
- The
inverseAmount
computed property is now a method namednegated()
- Arithmetic is now only possible between instances of currencies
- The most notable breaking changes are to initializers:
- Localization through String Interpolation now requires the
localize:
prefix (#25)- e.g.
"\(localize: JPY(300))"
- e.g.
Minor
- The
XXX
(No Currency Transaction) currency has been added (#20)