     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 kTag: NSInteger = 1000
+
     let min = { (float1: CGFloat, float2: CGFloat) -> CGFloat in
         return float1 > float2 ? float2 : float1
     }

    public init(frame: CGRect, contentDataSource: NSArray, titleDataSource: NSArray, type: UISegmentedMenuType) {
        super.init(frame: frame)
        
        font = UIFont(name: "Helvetica", size: 16)
        self.type = type
        
        contentView = UIScrollView(frame: CGRect(x: 0, y: 0, width: bounds.size.width, height: bounds.size.height - 0.5))

    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
