             ttTabBar(self, tabDidDisappear: tabBar)
         }
         
+        if let view = activeView {
+            view.removeFromSuperview()
+        }
+        
         //add VC to detailView
         //set active bar
         activeTabBar = nil
+        activeView = vc.view
         
         vc.view.frame = self.detailView.bounds
         detailView.addSubview(vc.view)

                vc.view.removeFromSuperview()
            }
            ttTabBar(self, tabDidDisappear: tabBar)
        }
        
        if let item = tabBarItem {

    
    private var detailView: UIView! //View that will show controllers
    private var activeTabBar: TTTabBarItem? //Active showing view Controller
    private var activeView: UIView? //Active showing view Controller
    private var tabBarView: UIView! //View of tabBar
    private var contentTabBarView : UIView! //Content, where background is render
    
