Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flags currency #32

Merged
merged 5 commits into from
Jun 4, 2024
Merged

Add flags currency #32

merged 5 commits into from
Jun 4, 2024

Conversation

gemdev111
Copy link
Contributor

added flags for supported currencies natively for iOS, updated settings selected currency with flag

@gemdev111 gemdev111 requested a review from gemcoder21 June 4, 2024 18:17
@gemdev111 gemdev111 linked an issue Jun 4, 2024 that may be closed by this pull request
Copy link
Contributor

@gemcoder21 gemcoder21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be great to attach screenshot to see how it looks

@@ -66,6 +70,70 @@ class CurrencySceneViewModel: ObservableObject {

extension Locale.Currency {
var title: String {
return String(format: "%@ - %@", identifier, Locale.current.localizedString(forCurrencyCode: identifier) ?? .empty)
let localizedCurrencyId = Locale.current.localizedString(forCurrencyCode: identifier) ?? .empty
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add unit test for this one? to make sure we properly present the title

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will add

Gem/Settings/ViewModels/CurrencySceneViewModel.swift Outdated Show resolved Hide resolved
[+] added "₿" for future implementation in currency core
[+] added CurrencySceneViewModelTests (test the title for currency)
Conflicts:
	Gem.xcodeproj/project.pbxproj
@gemdev111
Copy link
Contributor Author

gemdev111 commented Jun 4, 2024

would be great to attach screenshot to see how it looks
image
image

@gemdev111 gemdev111 merged commit 8b497f5 into main Jun 4, 2024
1 check passed
@gemdev111 gemdev111 deleted the add-flags-currency branch June 4, 2024 22:04
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.

Add flags to each currency
2 participants