Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // UIColorCustom.swift
- // DemoProj
- //
- // Created by Ahsan Parekh on 16/09/2019.
- // Copyright © 2019 Avanza. All rights reserved.
- //
- //
- // Extension_Color.swift
- // AmbitBox
- //
- // Created by Avanza on 3/18/19.
- // Copyright © 2019 AvanzaSolutions. All rights reserved.
- //
- import Foundation
- import UIKit
- extension UIColor {
- convenience init(rgb: UInt) {
- self.init(
- red: CGFloat((rgb & 0xFF0000) >> 16) / 255.0,
- green: CGFloat((rgb & 0x00FF00) >> 8) / 255.0,
- blue: CGFloat(rgb & 0x0000FF) / 255.0,
- alpha: CGFloat(1.0)
- )
- }
- struct Palette{
- static let black = UIColor.init(rgb: UInt(0x000000))
- static let white = UIColor.init(rgb: UInt(0xFFFFFF))
- static let titanWhite = UIColor.init(rgb: UInt(0xe5e5ff))
- static let brightTurquoise = UIColor.init(rgb: UInt(0x0DE3FA))
- static let jordyBlue = UIColor.init(rgb: UInt(0x96C0F5))
- static let blueRibbon = UIColor.init(rgb: UInt(0x0248FF))
- static let blueHaze = UIColor.init(rgb: UInt(0xC5CDDF))
- static let royalBlue = UIColor.init(rgb: UInt(0x2680EB))
- static let toryBlue = UIColor.init(rgb: UInt(0x135CA5))
- static let darkBlue = UIColor.init(rgb: UInt(0x1000a4))
- static let pictonBlue = UIColor.init(rgb: UInt(0x3488EC))
- static let shamrock = UIColor.init(rgb: UInt(0x35DCA4))
- static let periwinkle = UIColor.init(rgb: UInt(0xC9D2FF))
- static let nepal = UIColor.init(rgb: UInt(0x8F9FC2))
- static let red = UIColor.init(rgb: UInt(0xFF0000))
- static let rose = UIColor.init(rgb: UInt(0xFF0180))
- static let abbey = UIColor.init(rgb: UInt(0x4D4F56))
- static let purpleHeart = UIColor.init(rgb: UInt(0x462EDB))
- static let geyser = UIColor.init(rgb: UInt(0xCAD2DE))
- static let whisper = UIColor.init(rgb: UInt(0xFBFBFD))
- static let botticelli = UIColor.init(rgb: UInt(0xD9E2EF))
- static let alabaster = UIColor.init(rgb: UInt(0xFCFCFC))
- static let ghost = UIColor.init(rgb: UInt(0xC7C9D5))
- static let baliHai = UIColor.init(rgb: UInt(0x859FAF))
- static let energyYellow = UIColor.init(rgb: UInt(0xF8DB4D))
- static let blackRussian = UIColor.init(rgb: UInt(0x00001E))
- static let wildBlueYonder = UIColor.init(rgb: UInt(0x8997BB))
- static let mirage = UIColor.init(rgb: UInt(0x191E2D))
- static let rockBlue = UIColor.init(rgb: UInt(0xA3AEC9))
- static let darkGray = UIColor.darkGray
- static let athensGray = UIColor.init(rgb: UInt(0xF6F6F9))
- static let cornflowerBlue = UIColor.init(rgb: UInt(0x4B8EE7))
- static let spindle = UIColor.init(rgb: UInt(0xBFD3EF))
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement