             case .custom(_, let textColor):
                 return textColor
             default:
-                return AlertBarHelper.UIColorFromRGB(0xFFFFFF)
+                return UIColor(0xFFFFFF)
             }
         }
     }

            })
    }
    
    open class func showError(_ error: NSError, duration: Double = 2, completion: (() -> Void)? = nil) {
        let code = error.code
        let localizedDescription = error.localizedDescription
        self.show(.error, message: "(\(code)) " + localizedDescription)
    }
}

internal class AlertBarHelper {
    class func UIColorFromRGB(_ rgbValue: UInt) -> UIColor {
        return UIColor(
            red: CGFloat((rgbValue & 0xFF0000) >> 16) / 255.0,
            green: CGFloat((rgbValue & 0x00FF00) >> 8) / 255.0,
            blue: CGFloat(rgbValue & 0x0000FF) / 255.0,

        get {
            switch self {
            case .success:
                return UIColor(0x4CAF50)
            case .error:
                return UIColor(0xf44336)
            case .notice:
                return UIColor(0x2196F3)
            case .warning:
                return UIColor(0xFFC107)
            case .info:
                return UIColor(0x009688)
            case .custom(let backgroundColor, _):
                return backgroundColor
            }
