Skip to content
This repository was archived by the owner on Jan 25, 2021. It is now read-only.

Fixes AssetCell + Refactors Currency Settings and fixes Title#31

Open
tiagoalmeida wants to merge 8 commits intoO3Labs:masterfrom
tiagoalmeida:fix/currency_title
Open

Fixes AssetCell + Refactors Currency Settings and fixes Title#31
tiagoalmeida wants to merge 8 commits intoO3Labs:masterfrom
tiagoalmeida:fix/currency_title

Conversation

@tiagoalmeida
Copy link
Copy Markdown

I was exploring the code on the wallet and noticed this:

simulator screen shot - iphone 6 - 2018-05-04 at 19 52 45

Therefore, I tried to fix that issue.

While I was doing this, and exploring the code I have also had trouble compiling and running, and added those fixes as well. The only thing that I wasn't able to fix was the Info.plist. Xcode says that Info.plist is in the wrong format in the current master branch. I added one of my own so I was able to work.

Since I was fixing the issue I made a small refactor in CurrencyTableViewController.

Improvements

As a side note I believe that selecting + going back is an unnecessary step, it would be more simple for the user to simply select and go back automatically (he would see that he selected correctly since it appears in the settings)

saltyskip and others added 7 commits April 10, 2018 15:04
* update neo-scan and tx history

* git status

* finish tx history and ccurrency touch ups
* finish featured content

* Update FeatureFeed.swift

* refine, inapp-browser with share

* disable user interaction button

* schemes for testing

* update neo-scan and tx history

* git status

* finish tx history and ccurrency touch ups

* add analytics

* need debug flag

* conditionally compile crashlytics

* update community forum, swift 4.1, ask for reviews

* fix sign tx history

* touch up passcode glow

* revert

* Formatting number (CityOfZion#19)

* format number

* Localization (CityOfZion#21)

* linter

* finish localize onboarding

* localize portfolio

* finish account

* finish news feed so easy lol

* localize settings

* only token sales left

* factor our tokensale struct

* factor out account strings

* finish onboarding

* finish settings localization

* finish updating all the strings

* all strings setup

* minor update

* fix localization linker errors

* finalizing

* updates
…o fix/currency_title

# Conflicts:
#	.swiftlint.yml
#	Cartfile.resolved
#	O3.xcodeproj/project.pbxproj
#	O3/Account/Account.storyboard
#	O3/Account/AccountAssetTableViewController.swift
#	O3/Account/ContactsTableViewController.swift
#	O3/Account/TokenSelection/Nep5SelectionCollectionViewController.swift
#	O3/Account/TokenSelection/NftTokenViewController.swift
#	O3/Account/TokenSelection/TokenSelection.storyboard
#	O3/Account/TokenSelection/TokenSelectionStrings.swift
#	O3/Account/TransactionCell.swift
#	O3/Account/TransactionHistoryTableViewController.swift
#	O3/Base.lproj/Localizable.strings
#	O3/Info.plist
#	O3/Main.storyboard
#	O3/Onboarding/LoginTableViewController.swift
#	O3/Onboarding/LoginToCurrentWalletViewController.swift
#	O3/Onboarding/Onboarding.storyboard
#	O3/Send/Send.storyboard
#	O3/Send/SendTableViewController.swift
#	O3/SettingsMenu/AddressEntryTableViewController.swift
#	O3/SettingsMenu/Currency/CurrencyTableViewController.swift
#	O3/SettingsMenu/SettingsMenuTableViewController.swift
#	O3/SettingsMenu/SettingsStrings.swift
#	O3/TokenSale/ContributionTableViewCell.swift
#	O3/TokenSale/TokenSale.storyboard
#	O3/TokenSale/TokenSaleStrings.swift
#	O3/TokenSale/TokenSaleSubmitViewController.swift
#	O3/TokenSale/TokenSaleTableViewController.swift
#	O3/TokenSale/TokenSalesListTableViewController.swift
#	O3/UIControls/AssetInputToolbar.swift
#	O3/UIControls/OzoneAlert.swift
#	O3/UserDefaultsManager.swift
#	O3/WalletHome/API/O3Client.swift
#	O3/WalletHome/HomeViewModel.swift
#	O3/ja.lproj/Localizable.strings
#	O3/zh-Hans.lproj/Localizable.strings
Copy link
Copy Markdown

@saltyskip saltyskip left a comment

Choose a reason for hiding this comment

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

Hi this is a very welcome change, thank you for tifying it up. I believe the localized String fix is up to date in the latest version. Can you merge in master?

Afterwards this will be good to go

…o fix/currency_title

# Conflicts:
#	O3/Account/TokenSelection/NEP5TokenSelectorTableViewCell.swift
@tiagoalmeida
Copy link
Copy Markdown
Author

Hi @saltyskip, thanks for the reply. I have updated from the master. Indeed this was fixed in master, but my solution improves a bit.

In master every time you wanted to use this localised string you would need to append the current currency. This behaviour is hard to guarantee its consistency along the code. I have added a closure that basically ensures that every time this string is used it must come with an extra string.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants