Rather than working with the protocol Money, or any of the concrete implementations directly, I would like the ability to progressively work with the Currency module by wrapping properties in my projects with a new PropertyWrapper that would handle all of the minorUnits and type constraints for me.
Proposed Naming
CurrencyValue
struct Foo {
@CurrencyValue(USD.self) var price: Decimal
}
Desired Functionality
Rather than working with the protocol
Money
, or any of the concrete implementations directly, I would like the ability to progressively work with theCurrency
module by wrapping properties in my projects with a new PropertyWrapper that would handle all of theminorUnits
and type constraints for me.Proposed Naming
CurrencyValue
Format subtype