Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 2.16 KB

README.md

File metadata and controls

52 lines (33 loc) · 2.16 KB

Color

System Colors

iOS has a range of system colors that automatically adapt to vibrancy and changes in accessibility setting like Increase Contrast and Reduce Transparency. The system colors look great individually and in combination, on both light and dark backgrounds, and in both like and dark modes.

drawing

drawing

Dynamic System Colors

Apple also has semantically defined system colors for use in background areas, foreground content, and native controls like labels, seperators, and fill. They automatically adapt to both like and dark UI modes.

drawing

drawing

drawing

drawing

Programatic Color

extension UIColor {
    static let darkBlue = UIColor(red: 10/255, green: 132/255, blue: 255/255, alpha: 1)
}

But also give the color a name around what it represents

public extension UIColor {
    static var downloadColor: UIColor {
        return .shawSkyBlue
    }

    static var uploadColor: UIColor {
        return .shawTertiaryYellow
    }
}

Links that help