| | |
| | | } |
| | | |
| | | @IBAction func logOutAction(_ sender: UIButton) { |
| | | showAlert(title: "Would you like to log out?", message: nil, buttonTitles: ["YES","NO"], highlightedButtonIndex: 0) { index in |
| | | if index == 0{ |
| | | let nav = BaseNavigationController(rootViewController: LoginVC()) |
| | | UserViewModel.clearUserInfo() |
| | | screnDelegate?.window?.rootViewController = nav |
| | | } |
| | | CommonAlertView.show(title: "Prompt!", content: "Would you like to log out?", bt1: "No just yet", bt2: "Logout") { |
| | | let nav = BaseNavigationController(rootViewController: LoginVC()) |
| | | UserViewModel.clearUserInfo() |
| | | screnDelegate?.window?.rootViewController = nav |
| | | } |
| | | } |
| | | } |