             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!)
-    }
 }
 
 

            return theResult
        } else {
            return nil
        }
    }
}

        return String(format: "%d%@", self, suffix)
    }
}

extension UITableViewCell {

    // regulatory
    static var nib: UINib {
        let className = self.className
        return UINib(nibName: className, bundle: NSBundle.mainBundle())
    }

    static var cellReuseIdentifier: String {
        return self.className
    }

    static var className: String {
        return self.classForCoder().description().componentsSeparatedByString(".")[1]
    }
    
}

extension UICollectionViewCell {

    // regulatory
    static var nib: UINib {
        let className = self.className
        return UINib(nibName: className, bundle: NSBundle.mainBundle())
    }

    static var cellReuseIdentifier: String {
        return self.className
    }

    static var className: String {
        return self.classForCoder().description().componentsSeparatedByString(".")[1]
    }
    
}
