 // MARK: - Debug
 
 struct DKLogSettings {
+
     static var ShouldShowDetailedLogs   : Bool  = false
     static var DetailedLogFormat		= ">>> :line :className.:function --> :obj"
     static var DetailedLogDateFormat	= "yyyy-MM-dd HH:mm:ss.SSS"

}

extension NSError {
    func log() {
        print("Error: \(self) \(self.userInfo)")
    }
}

extension UIView {
    func roundRect(radius radius: CGFloat) {
        self.layer.cornerRadius = radius
        self.layer.masksToBounds = true

	*/
    class func gradientLayer(rect: CGRect, topColor: UIColor, bottomColor: UIColor) -> UIView {

        let gradientLayerView = UIView(frame: rect)
        let gradient = CAGradientLayer()
        gradient.frame = gradientLayerView.bounds
        gradient.colors = [topColor.CGColor, bottomColor.CGColor]
		gradient.startPoint = CGPoint(x: 0, y: -1.0)
