// // MainTabBarController.swift // elpha-ios // // Created by Dwayne Harris on 8/25/18. // Copyright © 2018 Elpha. All rights reserved. // import UIKit class MainTabBarController: UITabBarController { override func viewDidLoad() { super.viewDidLoad() } override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) if AuthenticationManager.shared.sessionCount == 0 { print("Unauthenticated") performSegue(withIdentifier: "AuthenticateSegue", sender: self) return } } }