-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will add
[+] added "₿" for future implementation in currency core [+] added CurrencySceneViewModelTests (test the title for currency)
Conflicts: Gem.xcodeproj/project.pbxproj
added flags for supported currencies natively for iOS, updated settings selected currency with flag