         
         let index = label.tag
         let title = label.text
-        self.currentSelectedIndex = index
+        self._currentIndex = index
         
         didSelectItemWith?(index, title)
         if title == nil {


extension TTSegmentedControl {
    
    open var currentIndex: Int {
        if !isConfigurated {
            return 0
        }
        let label = labelForPoint(thumbContainerView.center)
        let index = allItemLabels.firstIndex(of: label)
        return index ?? 0
    }
    
    public func selectItemAt(index: Int, animated: Bool = false) {
        if !isConfigurated {
            currentSelectedIndex = index
            return
        }
        let label = allItemLabels[min(index, attributedDefaultTitles.count - 1)]
        selectedLabelsView.isHidden = noItemSelected
        changeThumbFrameForPoint(label.center, animated: animated)
    }

        updateFrameForLables(allSelectedItemLabels)
        updateSelectedViewFrame()
        
        selectItemAt(index: _currentIndex)
        _ = self.subviews.map({$0.isExclusiveTouch = true})
        
    }
