|
|
|
@ -4,6 +4,7 @@ import UIKit |
|
|
|
|
import Combine |
|
|
|
|
import AlphaWalletAttestation |
|
|
|
|
import AlphaWalletFoundation |
|
|
|
|
import AlphaWalletLogger |
|
|
|
|
|
|
|
|
|
protocol TokensViewControllerDelegate: AnyObject { |
|
|
|
|
func viewWillAppear(in viewController: UIViewController) |
|
|
|
@ -266,6 +267,7 @@ final class TokensViewController: UIViewController { |
|
|
|
|
//Throttle with a small interval so that we only handle the last value in a bursts of updates. This is because each update might have changed `TokensViewModel.filteredTokensAndSections` and we don't want to use an outdated value of it and crash |
|
|
|
|
.throttle(for: 0.01, scheduler: RunLoop.main, latest: true) |
|
|
|
|
.sink { [weak self, weak walletSummaryView, blockieImageView, navigationItem] state in |
|
|
|
|
infoLog("Updating Wallet tab…") |
|
|
|
|
self?.viewModel.viewState = state |
|
|
|
|
self?.showOrHideBackupWalletViewHolder() |
|
|
|
|
|
|
|
|
|