Skip to content

Fix amount input ticker visibility and locale-aware symbol position#384

Draft
DRadmir wants to merge 1 commit into
mainfrom
worktree-ios-amount-input-locale-shrink
Draft

Fix amount input ticker visibility and locale-aware symbol position#384
DRadmir wants to merge 1 commit into
mainfrom
worktree-ios-amount-input-locale-shrink

Conversation

@DRadmir
Copy link
Copy Markdown
Collaborator

@DRadmir DRadmir commented May 25, 2026

Summary

  • Rewrite CurrencyTextField as UIViewRepresentable with adjustsFontSizeToFitWidth so the currency symbol stays glued to the digits and both shrink together when the amount is long.
  • Use NumberFormatter.positivePrefix to derive the currency symbol position per locale instead of hardcoding .leading for fiat — $50 for en_US, 50 € for fr_FR, 50 ₽ for ru_RU.
  • Slim CurrencyInputConfigurable: composing/stripping and live formatting moved into CurrencyTextField; sanitizer is now a protocol method with an identity default.

Closes #287, closes #333.

iOS

Simulator.Screen.Recording.-.iPhone.Air.-.2026-05-25.at.22.56.28.mov

Closes #287, closes #333.

- Rewrite CurrencyTextField as UIViewRepresentable with adjustsFontSizeToFitWidth so the currency symbol stays glued to the digits and both shrink together when the amount is long (#287).
- Add CurrencySymbolPosition to CurrencyFormatter and use it in fiat configs so the symbol position follows the locale instead of being hardcoded to leading (#333).
- Slim CurrencyInputConfigurable: composing/stripping and live formatting live in CurrencyTextField; sanitizer is now a protocol method with an identity default.
@DRadmir DRadmir self-assigned this May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android: AmountField shows currency symbol as suffix (50 $) instead of locale-aware prefix ($50) Hidden asset ticker when long amount

1 participant