                                               attribute: NSLayoutAttribute.height,
                                               multiplier: 1,
                                               constant: 0))
-        
+
         self.addConstraint(NSLayoutConstraint(item: movingView!,
                                               attribute: NSLayoutAttribute.centerX,
                                               relatedBy: NSLayoutRelation.equal,


@IBDesignable
open class FRCircleSlider: UIControl {
    
    @IBInspectable let selectedColor = UIColor.blue
    @IBInspectable let dotColor = UIColor.red
    @IBInspectable let connectorColor = UIColor.yellow
    @IBInspectable let textFont = UIFont.systemFont(ofSize: 12)
    
    var circleRadius:CGFloat = 250
    var lineWidth:CGFloat = 1
    var circleWidth:CGFloat = 3
    var connectorWidth:CGFloat = 10
    var lineHeight:CGFloat = 10
    let arcRadius:CGFloat = 30
    
    var value1:CGFloat = 0.1
    {
        willSet(value) {
            if(value != value1) {
                getViewAngleFromValue(value)

                                              attribute: NSLayoutAttribute.width,
                                              multiplier: 1,
                                              constant: 0))

        self.addConstraint(NSLayoutConstraint(item: movingView!,
                                              attribute: NSLayoutAttribute.height,
                                              relatedBy: NSLayoutRelation.equal,
