             reloadSegments()
         }
     }
+
+    fileprivate var _underlineHeight: CGFloat = 4.0
+    @objc public dynamic var underlineHeight: CGFloat {
+        get { return _underlineHeight }
+        set {
+            _underlineHeight = newValue
+            reloadSegments()
+        }
+    }
     
     fileprivate var _selectedSegmentContentColor:UIColor?
     @objc public dynamic var selectedSegmentContentColor:UIColor? {

        static let defaultTextColor = UIColor.darkGray
        
        var underlineView:UIView?
        public var contentColor:UIColor?
        public var selectedContentColor:UIColor?
        

                
                segmentCell = cell
            }
            segmentCell.underlineHeight = segmentedControl.underlineHeight
            segmentCell.showUnderline = segmentedControl.underlineSelected
            if segmentedControl.underlineSelected {
                segmentCell.tintColor = segmentedControl.tintColor
