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

        layer.shadowRadius = 0
        layer.shadowOpacity = 0
        layer.shadowOffset = CGSize.zero
        layer.frame = pathBottom.bounds;
        self.rotateDot(layer, forAngle: angle)
        
        return layer
    }
    
    func drawConnector(_ rect:CGRect)
    {
        var diff = value2 - value1
        
        if diff < 0 {
            diff = 1 + diff
        }
        
        diff -= 0.02
        
        let angle = CGFloat(GLKMathDegreesToRadians(-90))
        
        let X = CGFloat(0)
        let Y = CGFloat(0)
        let arcRadius:CGFloat = circleRadius
        let color = connectorColor
        let pathBottom = UIBezierPath(ovalIn: CGRect(x: (X - (arcRadius/2)), y: (Y - (arcRadius/2)), width: arcRadius, height: arcRadius))
        
        let connector = CAShapeLayer()
        connector.lineWidth = connectorWidth
        connector.path = pathBottom.cgPath

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

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