     
     public var selectedIndex: Int {
         set {
-            indexInside = newValue
+            _selectedIndex = newValue
             menuView?.selectItemAtIndex(newValue)
         }
-        get { return indexInside }
+        get { return _selectedIndex }
     }
     
     public var viewFrame = CGRect() {

        guard childControllersCount > 0 else { return }
        calculateSize()
        addScrollView()
        addViewControllerAtIndex(indexInside)
        currentViewController = displayingControllers[indexInside] as? UIViewController
        addMenuView()
    }


    private var viewWidth: CGFloat = 0.0
    private var viewX: CGFloat = 0.0
    private var viewY: CGFloat = 0.0
    private var _selectedIndex = 0
    private var targetX: CGFloat = 0.0
    private var superviewHeight: CGFloat = 0.0
    private var hasInit = false
