[Log] Log when the Wallet tab UI is updated

pull/6960/head
Hwee-Boon Yar 1 year ago
parent 47f2b91284
commit 7f056e663a
  1. 2
      AlphaWallet/Tokens/ViewControllers/TokensViewController.swift

@ -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()

Loading…
Cancel
Save