SwiftCoding
SwiftCoding copied to clipboard
CurrencyField
Steven This looks like the best Currency Text Field I've seen. It may be the only one that uses Decimal. I do see 2 problems with it's use.
- If you enter all non-numeric then the characters are left in the field but the decimal is zero. I've added a button to your test form and if I enter "AAA" and click the button the field changes to $1.00.
- This one may not be a bug but stops me from using the CurrencyField. You are using "Decimal?". Why can't you use "Decimal"? The value should never be nil and you see from $1 an invalid entry has the value zero.
Thanks in advance. George