From cfa7e44414abe4e326156f52bd79db83f08703ca Mon Sep 17 00:00:00 2001 From: Juraj Hilje Date: Tue, 10 Sep 2024 17:15:27 +0200 Subject: [PATCH] feat(account): update AccountViewController.swift --- IVPNClient/Scenes/AccountScreen/AccountViewController.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/IVPNClient/Scenes/AccountScreen/AccountViewController.swift b/IVPNClient/Scenes/AccountScreen/AccountViewController.swift index 91487df3..108819e2 100644 --- a/IVPNClient/Scenes/AccountScreen/AccountViewController.swift +++ b/IVPNClient/Scenes/AccountScreen/AccountViewController.swift @@ -88,6 +88,7 @@ class AccountViewController: UITableViewController { override func viewDidLoad() { super.viewDidLoad() tableView.backgroundColor = UIColor.init(named: Theme.ivpnBackgroundQuaternary) + NotificationCenter.default.addObserver(self, selector: #selector(willEnterForeground), name: UIApplication.willEnterForegroundNotification, object: nil) initNavigationBar() addObservers() accountView.setupView(viewModel: viewModel) @@ -99,6 +100,10 @@ class AccountViewController: UITableViewController { sessionManager.getSessionStatus() } + @objc func willEnterForeground(notification: NSNotification) { + accountView.setupView(viewModel: viewModel) + } + // MARK: - Observers - func addObservers() {