You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
591 B
25 lines
591 B
//
|
|
// 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
|
|
}
|
|
}
|
|
}
|