             alpha: CGFloat(1.0)
         )
     }
-
-    // slightly darkened colors
-
-
-    func colorByDarkeningWithValue(value: CGFloat) -> UIColor {
-
-        let numberOfComponenets = CGColorGetNumberOfComponents(self.CGColor)
-        let isGreyscale = numberOfComponenets == 2
-
-        let oldComponents = CGColorGetComponents(self.CGColor)
-        var newComponents: [CGFloat] = [0.0, 0.0, 0.0, 0.0]
-
-        if isGreyscale {
-            newComponents[0] = oldComponents[0] - value < 0.0 ? 0.0 : oldComponents[0] - value
-            newComponents[1] = oldComponents[0] - value < 0.0 ? 0.0 : oldComponents[0] - value
-            newComponents[2] = oldComponents[0] - value < 0.0 ? 0.0 : oldComponents[0] - value
-            newComponents[3] = oldComponents[1];
-        } else {
-            newComponents[0] = oldComponents[0] - value < 0.0 ? 0.0 : oldComponents[0] - value
-            newComponents[1] = oldComponents[1] - value < 0.0 ? 0.0 : oldComponents[1] - value
-            newComponents[2] = oldComponents[2] - value < 0.0 ? 0.0 : oldComponents[2] - value
-            newComponents[3] = oldComponents[3]
-        }
-
-        let colorSpace = CGColorSpaceCreateDeviceRGB()
-        let newColor = CGColorCreate(colorSpace, newComponents)
-
-        return UIColor(CGColor: newColor!)
-    }
 }
 
 


    func addCenterYConstraintsToView(view: UIView, offset: CGFloat) {
        self.addConstraint(NSLayoutConstraint(item: self, attribute: .CenterY, relatedBy: .Equal, toItem: view, attribute: .CenterY, multiplier: 1.0, constant: -offset))
    }

    // Height and Width

// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import UIKit
import CoreLocation

// MARK: - Hex Representation of Color -

