let MH_MAIN_COLOR_YELLOW = UIColor.hexColor(hex: 0xFDBC37)
extension UIColor {
static func hexColor(hex: Int32) -> UIColor {
let r = CGFloat((hex & 0xFF0000) >> 16)
let g = CGFloat((hex & 0x00FF00) >> 8)
let b = CGFloat((hex & 0x0000FF) >> 0)
return UIColor.rgbColor(r: r, g: g, b: b)
}
static func rgbColor(r: CGFloat, g: CGFloat, b: CGFloat) -> UIColor {
return UIColor.init(
red: CGFloat(r/255.0),
green: CGFloat(g/255.0),
blue: CGFloat(b/255.0)
, alpha: 1.0)
}
}