     @objc private func selectDay(sender : AnyObject) {
         
         if (singleSelection == true) {
-            for (index, element) in daysButton.enumerate() {
-                setInActive(daysButton[index])
+            for (index, element) in daysButton.enumerated() {
+                setInActive(tuple: daysButton[index])
                 daysButton[index].selected = false
             }
         }

    
    @IBInspectable public var defaultSelectedDay : Int = -1
    @IBInspectable public var singleSelection : Bool = false
    @IBInspectable public var titleColor : UIColor = UIColor.blackColor()
    @IBInspectable public var selectedBackgroundColor : UIColor = UIColor.clearColor()
    @IBInspectable public var selectedTitleColor : UIColor = UIColor.whiteColor()
    
    // MARK : Private property
    private typealias CHButton = (button : UIButton, selected : Bool, selectedLayer : CALayer)

        daysButton.removeAll()
        
        self.daysLabel.forEach { currentDay in
            let button = UIButton(frame: CGRect(x: CGFloat(position) * itemWidth, y:0, width: itemWidth, height: itemHeight))
            let layer = CALayer()
            let tuple = CHButton(button, false, layer)
            
            configureButton(tuple: tuple, title: currentDay, position: position)
            configureLayer(tuple: tuple)
            daysButton.append(tuple)
            
            if position == defaultSelectedDay {
                selectDay(sender: button)
            }
            
            position += 1
