Skip to content

Releases: Sega-Zero/swift-iso-4217

Few formatting improves

08 Nov 19:32
Compare
Choose a tag to compare

Improvements in price formatting

24 Nov 23:13
9a66a78
Compare
Choose a tag to compare

Slightly improved searching of an appropriate locale for price formatting.
It looks like on iOS 13 there might be several locales for specific currency codes and unluckily, the old code may choose the wrong locale. So, we try to find the locale in which currencySymbol differs from currencyCode first.
For example, for RUB we have these locales with RUB currencyCode:
[ba_RU, ru_RU, cv_RU, sah_RU, ce_RU, myv_RU, tt_RU, os_RU, en_RU]
but if we take a look at it's currencySymbol, we see:
"RUB", "₽", "RUB", "₽", "₽" ,"RUB", "₽", "₽", "RUB"

So, since now the library will peek ru_RU locale, since it has more friendly currency formatting.

Swift 5

24 Nov 23:06
460c4bc
Compare
Choose a tag to compare
  • Example upgrade to swift 5
  • Added conformance to Hashable and Equatable

Initial release

30 Apr 00:27
53ae686
Compare
Choose a tag to compare

Initial library release