         }
     }
 }
-
-extension UIColor {
-    var components:(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat) {
-        var r: CGFloat = 0, g: CGFloat = 0, b: CGFloat = 0, a: CGFloat = 0
-        getRed(&r, green: &g, blue: &b, alpha: &a)
-        return (r,g,b,a)
-    }
-}

    
    // MARK: - Private Methods
    
    private func setuppulse() {
        pulse.contentsScale = UIScreen.mainScreen().scale
        pulse.opacity = 0
        addSublayer(pulse)

    
    /// Start the animation.
    public func start() {
        setupPulse()
        setupAnimateionGroup()
        pulse.addAnimation(animationGroup, forKey: kPulsatorAnimationKey)
    }
