Created
March 12, 2018 10:14
-
-
Save DavidRysanek/fcca558c27e4e7b7d89d88b1fabeb4f1 to your computer and use it in GitHub Desktop.
UIColor exstension with Apple colours found in Human Interface Guidelines
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
/// Collection of Apple colours found in Human Interface Guidelines | |
/// https://developer.apple.com/ios/human-interface-guidelines/visual-design/color/ | |
public extension UIColor { | |
static let appleRed = UIColor(red: 255/255, green: 59/255, blue: 48/255, alpha: 1) | |
static let appleOrange = UIColor(red: 255/255, green: 149/255, blue: 0/255, alpha: 1) | |
static let appleYellow = UIColor(red: 255/255, green: 204/255, blue: 0/255, alpha: 1) | |
static let appleGreen = UIColor(red: 76/255, green: 217/255, blue: 100/255, alpha: 1) | |
static let appleTealBlue = UIColor(red: 90/255, green: 200/255, blue: 250/255, alpha: 1) | |
static let appleBlue = UIColor(red: 0/255, green: 122/255, blue: 255/255, alpha: 1) | |
static let applePurple = UIColor(red: 88/255, green: 86/255, blue: 214/255, alpha: 1) | |
static let applePink = UIColor(red: 255/255, green: 45/255, blue: 85/255, alpha: 1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment