 import UIKit
 
 class TTTabBar: UIViewController {
-
+    
     private var detailView: UIView! //View that will show controllers
     private var activeTabBar: TTTabBarItem? //Active showing view Controller
     private var tabBarView: UIView! //View of tabBar

            
            if defaultTabBarItem == tabBarItem {
                //Load the default VC
                self.loadViewController(tabBarItem)
            }
            
            //Call action on touchUpInside

    
    func tabBarItemClicked(sender: AnyObject) {
        if let tabBar = sender as? TTTabBarItem {
            self.loadViewControllerFrom(tabBar)
        }
    }
    
    func loadViewControllerFrom(tabBarItem: TTTabBarItem?) {
        if let item = tabBarItem {
            if !self.ttTabBar(self, shouldChangeTab: item) {
                return
            }
            
            //if users click on the same tab that is active, return
            if let tabBar = activeTabBar {
                if item == activeTabBar {
                    return
                }
            }
        }
        
