         static let defaultTextColor = UIColor.darkGray
         
         var underlineView:UIView?
+        var underlineHeight: CGFloat = 4.0 {
+            didSet {
+                setNeedsUpdateConstraints()
+            }
+        }
         public var contentColor:UIColor?
         public var selectedContentColor:UIColor?
         

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

            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? {
