You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
520 B
22 lines
520 B
//
|
|
// UIColorExtension.swift
|
|
// GMERemittance
|
|
//
|
|
// Created by Fm-user on 2/2/18.
|
|
// Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
extension UIColor {
|
|
|
|
convenience init(hex: Int) {
|
|
let components = (
|
|
R: CGFloat((hex >> 16) & 0xff) / 255,
|
|
G: CGFloat((hex >> 08) & 0xff) / 255,
|
|
B: CGFloat((hex >> 00) & 0xff) / 255
|
|
)
|
|
self.init(red: components.R, green: components.G, blue: components.B, alpha: 1)
|
|
}
|
|
|
|
}
|