Skip to content

Instantly share code, notes, and snippets.

@DavidRysanek
DavidRysanek / UIColor+AppleColours.swift
Created March 12, 2018 10:14
UIColor exstension with Apple colours found in Human Interface Guidelines
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)