         
         let x = subView?.frame.width ?? 0
         if isEndPointLeft {
-            subView?.center = CGPoint(x:  endPoint.x - x / 2, y: endPoint.y)
+            subView?.center = CGPoint(x: endPoint.x - x / 2, y: endPoint.y)
         } else {
-            subView?.center = CGPoint(x:  endPoint.x + x / 2, y: endPoint.y)
+            subView?.center = CGPoint(x: endPoint.x + x / 2, y: endPoint.y)
         }
         
         addSubview(subView!)

        self.endAngle = endAngle
        self.subView = subView
        self.lineColor = color
    }
    
    required init?(coder aDecoder: NSCoder) {

        let linePath = UIBezierPath()
        let midAngle = (startAngle! + endAngle!) / 2
        
        let startPoint = CGPoint(x: center.x + cos(midAngle) * (radius - lineLength!), y: center.y + sin(midAngle) * (radius - lineLength!))
        let turningPoint = CGPoint(x: center.x + cos(midAngle) * (radius + lineLength!), y: center.y + sin(midAngle) * (radius + lineLength!))
        let isEndPointLeft = turningPoint.x < center.x
        let endPoint = CGPoint(x: turningPoint.x + (isEndPointLeft ? -1 : 1) * lineLength!, y: turningPoint.y)
        
        linePath.move(to: startPoint)
        linePath.addLine(to: turningPoint)
