From a505a8e5534a7038d5808cfdca618b04ea242348 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Fri, 22 Jan 2021 17:24:36 -0500 Subject: [PATCH] [+] Create display function in ManageVC that displays account info after login --- ProjectClock/AccountViewController.swift | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/ProjectClock/AccountViewController.swift b/ProjectClock/AccountViewController.swift index 5ba5ea0..bc137af 100644 --- a/ProjectClock/AccountViewController.swift +++ b/ProjectClock/AccountViewController.swift @@ -36,6 +36,7 @@ class AccountViewController: UIViewController { vLogin.isHidden = true vManage.isHidden = false + ManageVC.this.display() } /** @@ -124,5 +125,32 @@ class LoginVC: UIViewController class ManageVC: UIViewController { + static var this: ManageVC! + + /** + Called when the user switched to the account tab (whether the view container is hidden or not) + */ + override func viewDidLoad() + { + // Static reference + ManageVC.this = self + super.viewDidLoad() + } + + /** + Display account info + */ + func display() + { + + } + + /** + Called when the user clicks the logout button + */ + @IBAction func logout(_ sender: Any) + { + + } }