     func clickSegmentedButton(button: UIButton) {
         let lastSelectedButton: UIButton = self.contentView?.viewWithTag(selectedIndex! + kTag) as! UIButton
         lastSelectedButton.isSelected = false
+        lastSelectedButton.titleLabel?.font = UIFont.systemFont(ofSize: defaultFontSize)
         
         selectedIndex = button.tag - kTag
         button.isSelected = true

            button.setTitleColor(.red, for: .selected)
            button.setTitle(title, for: .normal)
            button.addTarget(self, action: #selector(self.clickSegmentedButton(button:)), for: .touchUpInside)
            self.contentView?.addSubview(button)
            totalWidth += buttonWidth
            

    case fill
}

let defaultFontSize: CGFloat = 16
let highlightFontSize: CGFloat = 18
let kTag: NSInteger = 1000

public class UISegmentedMenu: UIView {
    
    public var titleDataSource: NSArray?
    public var contentDataSource: NSArray?

    let min = { (float1: CGFloat, float2: CGFloat) -> CGFloat in
        return float1 > float2 ? float2 : float1
    }
