     
     /// gesture actions
     @objc private func handleTapGesture(gesture: UITapGestureRecognizer) {
+        
         let location = gesture.locationInView(self)
         let index = Int(floor(location.x / eachItemWidth))
         switchToItem(index)
+        
     }
     
 }

extension DynamicMaskSegmentSwitch {
    
    private func initialViews() {
        backgroundColor = configure.highlightedColor
        
        for i in 0..<count {

    private var eachItemWidth: CGFloat {
        return self.bounds.width / CGFloat(count)
    }
    private(set) var indicator = UIView()
    private var selectedLabelsBaseView = UIView()
    private var selectedLabelsMaskView = UIView()
