     }
     
     func colorHex(rgb: Int) -> UIColor {
-        return UIColor(red: CGFloat((rgb & 0xFF0000) >> 16)/255.0,
-                       green: CGFloat((rgb & 0xFF00) >> 8)/255.0,
-                       blue: CGFloat(rgb & 0xFF)/255.0,
+        return UIColor(red: CGFloat((rgb & 0xFF0000) >> 16) / 255.0,
+                       green: CGFloat((rgb & 0xFF00) >> 8) / 255.0,
+                       blue: CGFloat(rgb & 0xFF) / 255.0,
                        alpha: 0.55)
     }
 }

        didSet {
            var convertedColors: [CGColor] = []
            if let inputColors = self.colors {
                for (index, hexColor) in enumerate(self.colors!) {
                    convertedColors.append(self.colorHex(hexColor).CGColor!)
                }
            } else {

        super.layoutSubviews()
        
        if self.startAngle == self.endAngle {
            self.endAngle = self.startAngle + (M_PI * 2)
        }
        self.shapeLayer().path = self.shapeLayer().path ?? self.layoutPath().CGPath
    }
