Skip to content

fix(menubar): use SupportedCurrency enum in settings picker#435

Merged
iamtoruk merged 1 commit into
mainfrom
fix/settings-currency-picker
Jun 3, 2026
Merged

fix(menubar): use SupportedCurrency enum in settings picker#435
iamtoruk merged 1 commit into
mainfrom
fix/settings-currency-picker

Conversation

@iamtoruk
Copy link
Copy Markdown
Member

@iamtoruk iamtoruk commented Jun 3, 2026

Summary

  • Replace hardcoded 8-currency array in SettingsView picker with SupportedCurrency.allCases
  • All 18 currencies now appear automatically; future enum additions need no separate SettingsView edit
  • Picker labels now show "USD — US Dollar" style for clarity

Context

Follow-up to #430 (CNY support). The picker was a hardcoded subset that drifted out of sync with the SupportedCurrency enum — a pre-existing issue surfaced during review.

Test plan

  • swift build passes
  • Verified SupportedCurrency conforms to CaseIterable + Identifiable

The currency picker hardcoded 8 currencies while the SupportedCurrency
enum defines 18. New currencies added to the enum (like CNY in #430)
required a separate SettingsView edit to appear in the picker.
@iamtoruk iamtoruk merged commit 14fbd4d into main Jun 3, 2026
3 checks passed
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.

1 participant